Session Expires

Discussion in 'ASP General' started by prash, May 24, 2004.

  1. prash

    prash Guest

    hello all
    I have an asp application which uses IIS 5 . I need to expire my session in
    10 minutes .
    I use session.expire=10 in my index.html page. when the session is expired
    in 10 minutes i need to redirect the respons to the login page agein.
    how can i do this
    Please help me

    /Thanks in advace
    Prashantha
    prash, May 24, 2004
    #1
    1. Advertising

  2. prash

    Patrice Guest

    This is done for each request. The likely usual scheme is :
    - create a session variable (only for this purpose or use one that stores
    the user id)
    - on each request, if this variable is empty go to the login page

    Of course, it's likely easier to have this in a file that is cinluded in all
    pages...

    Patrice

    "prash" <> a écrit dans le message de
    news:%...
    > hello all
    > I have an asp application which uses IIS 5 . I need to expire my session

    in
    > 10 minutes .
    > I use session.expire=10 in my index.html page. when the session is expired
    > in 10 minutes i need to redirect the respons to the login page agein.
    > how can i do this
    > Please help me
    >
    > /Thanks in advace
    > Prashantha
    >
    >
    Patrice, May 24, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rahul Kansara

    session expires quickly

    Rahul Kansara, Nov 11, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    1,990
    alex bowers
    Nov 11, 2003
  2. Welman Jordan
    Replies:
    3
    Views:
    523
    Welman Jordan
    Feb 28, 2004
  3. Shimon Sim
    Replies:
    2
    Views:
    417
    Steven Cheng[MSFT]
    Apr 22, 2004
  4. Daniel Geisenhoff

    Session never expires

    Daniel Geisenhoff, Sep 7, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    2,894
    Eliyahu Goldin
    Sep 7, 2004
  5. TJS
    Replies:
    2
    Views:
    317
Loading...

Share This Page