Detect Session Timeout

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.

Advertisements

Cam wrote:
> 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.
>
Here are a couple related articles:http://www.aspfaq.com/show.asp?id=2265http://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.

Advertisements

"Bob Barrows [MVP]" <> wrote in message
news:%...
> Cam wrote:
>> 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.
>>
> 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.
>
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!