NetTalk Central

Author Topic: How to force a re-login to go to the IndexPage  (Read 3141 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
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?
-----------
Regards
Alberto

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
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 !
-----------
Regards
Alberto