Detect Session Timeout

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cam

    Detect Session Timeout

    Hi to all

    I have searched this subject and found some posts but none of them seem to
    answer my problem.

    I am developing a shop site and need to detect when a session times out
    through inactivity and tell the user that it has been reset and he has to
    start over.

    I set some session variables in a global.asa file so when the user restarts
    the session variables reset and I can't detect if they change.
    For example
    'If Session("id") <> Some kind of check'
    will always return False because the check mechanism resets as well

    I've tried sending an ID to a database table in the global.asa but my server
    doesn't seem to handle that.

    The answers given on this subject all assume that the user will enter via a
    log in page. I can't arrange this on this particular site because it is only
    account customers who have to log in, general punters are served pages
    direct and they could enter the site anywhere.

    Hope I have explained the problem well enough for you to help.

    Clive


  • Bob Barrows [MVP]

    #2
    Re: Detect Session Timeout

    Cam wrote:[color=blue]
    > Hi to all
    >
    > I have searched this subject and found some posts but none of them
    > seem to answer my problem.
    >
    > I am developing a shop site and need to detect when a session times
    > out through inactivity and tell the user that it has been reset and
    > he has to start over.
    >[/color]
    Here are a couple related articles:



    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Comment

    • Cam

      #3
      Re: Detect Session Timeout

      Thanks, Bob

      I should be able to do something with the first one

      Clive

      "Bob Barrows [MVP]" <reb01501@NOyah oo.SPAMcom> wrote in message
      news:%23XL05iEK GHA.344@TK2MSFT NGP11.phx.gbl.. .[color=blue]
      > Cam wrote:[color=green]
      >> Hi to all
      >>
      >> I have searched this subject and found some posts but none of them
      >> seem to answer my problem.
      >>
      >> I am developing a shop site and need to detect when a session times
      >> out through inactivity and tell the user that it has been reset and
      >> he has to start over.
      >>[/color]
      > Here are a couple related articles:
      > http://www.aspfaq.com/show.asp?id=2265
      > http://www.aspfaq.com/show.asp?id=2491
      >
      > --
      > Microsoft MVP -- ASP/ASP.NET
      > Please reply to the newsgroup. The email account listed in my From
      > header is my spam trap, so I don't check it very often. You will get a
      > quicker response by posting to the newsgroup.
      >
      >[/color]


      Comment

      Working...