NetTalk Central

Author Topic: Logout but Session queue values remains  (Read 4791 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Logout but Session queue values remains
« on: April 01, 2009, 03:11:36 AM »
Hi,
OS Vista, IE7
Login as user 1
Use the app, which sets some values in the session queue.
Logout
Login as a new user (same machine, same sessionId)
The session queue has the values of the user 1

Should´t p_web.SetSessionLoggedIn(0) clear the values of the session?
And if not, how can I do it?

Thanks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Logout but Session queue values remains
« Reply #1 on: April 01, 2009, 04:17:17 AM »
>> Should´t p_web.SetSessionLoggedIn(0) clear the values of the session?

no.

>> And if not, how can I do it?

p_web.DeleteSession()

Cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Logout but Session queue values remains
« Reply #2 on: April 01, 2009, 04:27:24 AM »
Ok , thanks

After or Before p_web.SetSessionLoggedIn(0)  ?

-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Logout but Session queue values remains
« Reply #3 on: April 01, 2009, 04:58:04 AM »

Strictly speaking you don't need to set the loggedin if you are deleting the session.
But I would leave it in and do the delete session straight after.

Cheers
Bruce

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Logout but Session queue values remains
« Reply #4 on: March 09, 2012, 06:08:29 AM »
Hi All,

following this instructions i´ve put p_web.DeleteSession() on SecWinWebLoginForm/Generate Form/1 start/SecWin - Logout.

Is this correct?

Thanks
Walter - SOFTVALE

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Logout but Session queue values remains
« Reply #5 on: March 09, 2012, 06:12:23 AM »
No, it´s not correct. Now SecWinWebLoginForm dont login.
So, how to do it?

thanks
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Logout but Session queue values remains
« Reply #6 on: March 10, 2012, 04:25:31 AM »
in the web handler
SetSessionLoggedIn method
test the parameter, and do a self.DeleteSession if the user is logging out.
(I'd do it after the parent call.)