|
 |
asp_databases thread: logging out user after inactivity
Message #1 by imran.saleem@b... on Wed, 12 Dec 2001 13:54:34
|
|
Hi,
i am working on an application that allows users to login to an
application, however if the user has not done anything i.e. there has been
inactivity on the users behalf then i want to logout the user. I have seen
it done a number of web sites like the Halifax one but i am not sure how
it is specifically done.
Thanks for your help
Message #2 by David Cameron <dcameron@i...> on Thu, 13 Dec 2001 08:49:08 +1100
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C18356.D3CF478C
Content-Type: text/plain
For ASP you could rely on the session timing out. For every page in the site
check a session variable and if is empty then kick them out.
The other less savoury option is to do something that forces a get request
every n minutes, eg a 1x1 pix frame set to refresh every n minutes. Every
time the page is refreshed, check for any changes in the database that might
have been made by them. If none, then kick them out. This option is messy
because it means that you need to track what they are doing in the site and
also could chew up bandwidth.
regards
David Cameron
nOw.b2b
dcameron@i...
-----Original Message-----
From: imran.saleem@b... [mailto:imran.saleem@b...]
Sent: Wednesday, 12 December 2001 11:55 PM
To: ASP Databases
Subject: [asp_databases] logging out user after inactivity
Hi,
i am working on an application that allows users to login to an
application, however if the user has not done anything i.e. there has been
inactivity on the users behalf then i want to logout the user. I have seen
it done a number of web sites like the Halifax one but i am not sure how
it is specifically done.
Thanks for your help
$subst('Email.Unsub').
Message #3 by "Eric" <ef@c...> on Thu, 13 Dec 2001 05:29:25
|
|
> Hi,
> i am working on an application that allows users to login to an
> application, however if the user has not done anything i.e. there has
been
> inactivity on the users behalf then i want to logout the user. I have
seen
> it done a number of web sites like the Halifax one but i am not sure how
> it is specifically done.
>
> Thanks for your help
Hi
The way I'm currently doing this is to use your global.asa file.
sub Session_OnEnd
'Now here do database cleanup / logging out / updating tables etc.
End sub
Message #4 by David Cameron <dcameron@i...> on Thu, 13 Dec 2001 17:18:45 +1100
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1839E.058358D0
Content-Type: text/plain
This is similar to my suggestion about using the Session timeout. If you did
this you would still need to do the kind of checks for every page suggested
in my earlier email. Just to clean the database etc is not going to kick
them out.
BTW if you are using this to clean up you may well have problems.
Session_onEnd does not fire if someone closes the browser window, which is
the most common way that a session is ended.
regards
David Cameron
nOw.b2b
dcameron@i...
-----Original Message-----
From: Eric [mailto:ef@c...]
Sent: Thursday, 13 December 2001 3:29 PM
To: ASP Databases
Subject: [asp_databases] Re: logging out user after inactivity
> Hi,
> i am working on an application that allows users to login to an
> application, however if the user has not done anything i.e. there has
been
> inactivity on the users behalf then i want to logout the user. I have
seen
> it done a number of web sites like the Halifax one but i am not sure how
> it is specifically done.
>
> Thanks for your help
Hi
The way I'm currently doing this is to use your global.asa file.
sub Session_OnEnd
'Now here do database cleanup / logging out / updating tables etc.
End sub
$subst('Email.Unsub').
Message #5 by "Oliver Tomkins" <oliver.tomkins@g...> on Thu, 13 Dec 2001 11:12:48 -0000
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0027_01C183C7.194A12E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
RE: [asp_databases] Re: logging out user after inactivityHi, we
insert into a DB the session ID when a user logs in. Certain, but
not all pages update this DB, with a new timestamp. We delete
anybody whose last time stamp is over 30 minutes ago and force them
to log in. As we use the DB it makes the app portable as we add more
web server as we are not depended on session variables.
HTH
Olly.
-----Original Message-----
From: David Cameron [mailto:dcameron@i...]
Sent: 13 December 2001 06:19
To: ASP Databases
Subject: [asp_databases] Re: logging out user after inactivity
This is similar to my suggestion about using the Session timeout. If you
did this you would still need to do the kind of checks for every page
suggested in my earlier email. Just to clean the database etc is not going
to kick them out.
BTW if you are using this to clean up you may well have problems.
Session_onEnd does not fire if someone closes the browser window, which is
the most common way that a session is ended.
regards
David Cameron
nOw.b2b
dcameron@i...
-----Original Message-----
From: Eric [mailto:ef@c...]
Sent: Thursday, 13 December 2001 3:29 PM
To: ASP Databases
Subject: [asp_databases] Re: logging out user after inactivity
> Hi,
> i am working on an application that allows users to login to an
> application, however if the user has not done anything i.e. there has
been
> inactivity on the users behalf then i want to logout the user. I have
seen
> it done a number of web sites like the Halifax one but i am not sure how
> it is specifically done.
>
> Thanks for your help
Hi
The way I'm currently doing this is to use your global.asa file.
sub Session_OnEnd
'Now here do database cleanup / logging out / updating tables etc.
End sub
$subst('Email.Unsub').
$subst('Email.Unsub').
|
|
 |