Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 11:28 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ]  Bookmark and Share
Author Message
 Post subject: Doubts regarding session management.
PostPosted: Sun May 06, 2007 7:19 am 
Offline

Joined: Sun May 06, 2007 6:57 am
Posts: 3
Once we set the session using session.setAttribute(). Will it stay active for the duration of session timeout set in WEB.XML
(I am using tomcat server).

How can the user manually logout and create a new session(before the session timeout). Do we have to use session.inactivate method.

Thank you in advance.


Top
 Profile  
 
 Post subject: I got it solved
PostPosted: Tue May 08, 2007 10:17 am 
Offline

Joined: Sun May 06, 2007 6:57 am
Posts: 3
Cheers All, I have got the problem solved.

I got my problem sorted using the two functions session.invalidate()
and request.getSession.isNew().

whenever the isNew() method returns false, the user is redirected to the homepage and if the user wants to forcefully logout, I have used the session.invalidate() method to do so.

Thanks everybody for your time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley