NYCPHP Meetup

NYPHP.org

[nycphp-talk] auto logout without activity

Bruce Martin bmartin at mac.com
Thu May 22 09:48:59 EDT 2008


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
bruce at martinsolution.com



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, <anoland at indigente.net> wrote:
> Use a META tag to refresh & redirect to logout page. That's the way  
> my bank  does it.
>
> -----Original Message-----
> From: chad qian <nynj.tech at hotmail.com>
> Date: Thursday, May 22, 2008 12:08 am
> Subject: [nycphp-talk] auto logout without activity
> To: <talk at lists.nyphp.org>Reply-To: NYPHP Talk <talk at lists.nyphp.org>
>
>    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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080522/65e92169/attachment.html>


More information about the talk mailing list