Results 1 to 3 of 3
  1. #1
    dpk_vash is offline Member
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    4
    Rep Power
    0

    Default 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...

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    Default

    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 api
    Last edited by mtyoung; 12-23-2008 at 09:20 AM.

  3. #3
    dpk_vash is offline Member
    Join Date
    Dec 2008
    Location
    Bangalore
    Posts
    4
    Rep Power
    0

    Default

    Thanks...

    I am trying it..

    If any prob would come I'll contact you..

    Thank you very much...

Similar Threads

  1. how to create session in jsp
    By sandip_ingle21 in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 04-21-2011, 03:10 AM
  2. [SOLVED] logout user when session expires
    By sanjeevtarar in forum Java Servlet
    Replies: 12
    Last Post: 02-23-2010, 12:53 PM
  3. Login user name - for all platforms.
    By Eranga in forum Advanced Java
    Replies: 0
    Last Post: 03-17-2008, 05:45 AM
  4. how to expire a session in struts without using cookies
    By sathya_k_83 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-22-2007, 02:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •