Results 1 to 3 of 3
- 12-23-2008, 08:07 AM #1
Member
- Join Date
- Dec 2008
- Location
- Bangalore
- Posts
- 4
- Rep Power
- 0
How do I create session for a user when S/he login and expire the session.
Hi all,
I am going to make a session for a user when he logs in the s/w and want to expire the session when he logs out..
I am using following:
1. Netbeans IDE
2. Struts framework.
3. SQL Server Express 2005
Also want to use hibernate in the same application, but firstly I need your help to create session in Struts framework.
Please give me some suggestions for making the same...
Thanks in advance...
- 12-23-2008, 10:05 AM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 13
in web.xml
add listener tag
that class should implements HttpSessionListener
once user browse your page, session will be created to the user...
expire session... plz read httpseesion class in jee apiLast edited by mtyoung; 12-23-2008 at 10:20 AM.
- 12-23-2008, 07:35 PM #3
Member
- Join Date
- Dec 2008
- Location
- Bangalore
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
[SOLVED] logout user when session expires
By sanjeevtarar in forum Java ServletReplies: 14Last Post: 07-11-2014, 10:16 AM -
how to create session in jsp
By sandip_ingle21 in forum JavaServer Pages (JSP) and JSTLReplies: 4Last Post: 04-21-2011, 04:10 AM -
Login user name - for all platforms.
By Eranga in forum Advanced JavaReplies: 0Last Post: 03-17-2008, 06:45 AM -
how to expire a session in struts without using cookies
By sathya_k_83 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 11-22-2007, 03:07 PM
Bookmarks