NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
How to force a re-login to go to the IndexPage
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to force a re-login to go to the IndexPage (Read 3140 times)
Alberto
Hero Member
Posts: 1873
How to force a re-login to go to the IndexPage
«
on:
November 17, 2022, 03:46:52 PM »
When a page needs to be logged in and you try to get it, it goes to the LoginPage, ok, but when you log in it tries to open the last page, which in some cases is a real problem.
How to go always to the IndexPage when logging in?
Logged
-----------
Regards
Alberto
osquiabro
Hero Member
Posts: 687
Re: How to force a re-login to go to the IndexPage
«
Reply #1 on:
November 18, 2022, 03:53:04 AM »
for me work
p_web.SetSessionLoggedIn(0)
p_web.DeleteSession()
p_web.Script( p_web.WindowOpen( 'IndexPage' ))
in my LogoutForm in Generate Form Routine, and in footer use Session Manager that call LogoutForm
nt 12.47
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: How to force a re-login to go to the IndexPage
«
Reply #2 on:
November 19, 2022, 10:50:00 PM »
I haven't tested, but I think, one of the following might help.
p_web.DeleteValue('_chain_')
p_web.DeleteValue('_ChainToPage_')
p_web.DeleteSessionValue('_chain_')
Perhaps at the start of the login procedure.
Cheers
Bruce
Logged
Alberto
Hero Member
Posts: 1873
Re: How to force a re-login to go to the IndexPage
«
Reply #3 on:
November 28, 2022, 06:11:18 AM »
Thanks, this may be a new NT14 template feature !
Logged
-----------
Regards
Alberto
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
How to force a re-login to go to the IndexPage