NetTalk Central
		NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto 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
			 
			
			- 
				>> 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
			 
			
			- 
				Ok , thanks
After or Before p_web.SetSessionLoggedIn(0)  ?
			 
			
			- 
				
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
			 
			
			- 
				Hi All,
following this instructions i´ve put p_web.DeleteSession() on SecWinWebLoginForm/Generate Form/1 start/SecWin - Logout.
Is this correct?
Thanks
			 
			
			- 
				No, it´s not correct. Now SecWinWebLoginForm dont login.
So, how to do it?
thanks
			 
			
			- 
				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.)