Results 1 to 2 of 2

Thread: how can i make session or cookies expired?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    208

    how can i make session or cookies expired?

    I am using asp . i have a login page. then after a user has logged in.
    the user must wait only for certain minutes let me say it ten minutes.with in this 10 minutes he can post messages.but after 10 minutes he has logged in
    if he wants to post any message he must login again because the time limit after he logged in is already expired so how could i do so.

  2. #2
    Junior Member
    Join Date
    Feb 2006
    Posts
    20

    Re: how can i make session or cookies expired?

    Well here is the thing.

    If you want the user to be logged out even if he/she is active on the page then you can't use Session.Timeout because that will only timeout if the user is not active.

    If you want the user to be logged out if he is active then you have to create a new session with the timestamp of when he/she logged in. Then every time the page is refreshed check that session to see if it's more then 10 minutes and if so log the user out.

    Hope that helps.

    Ado
    AdoSoft INC
    A Software Development Company

Posting Permissions

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



Click Here to Expand Forum to Full Width