Set a cookie every time your user interacts with the server/site. You could use PHP or Javascript for that. Just update the expire time but only after you check for the existence of that cookie.

Bruce Martin
The Martin Solution
[EMAIL PROTECTED]



On May 22, 2008, at 9:43 AM, David Mintz wrote:

If you are doing Ajaxy stuff, though, could you not get auto-logged- out prematurely with this approach? That is, of course, unless you are relying on some client side stuff to reset the inactivity timer with each http request, ajax or otherwise.

On Thu, May 22, 2008 at 9:38 AM, <[EMAIL PROTECTED]> wrote:
Use a META tag to refresh & redirect to logout page. That's the way my bank does it.

-----Original Message-----
From: chad qian <[EMAIL PROTECTED]>
Date: Thursday, May 22, 2008 12:08 am
Subject: [nyphp-talk] auto logout without activity
To: <[email protected]>Reply-To: NYPHP Talk <[email protected]>

When user login after 10 minutes without any activity,he will automatically log out.
>How to PHP it?Can anyone give me idea?
>


--
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to