You are here: Using header(0 to manage user inactivity « PHP « IT news, forums, messages
Using header(0 to manage user inactivity

Posted by C Drozdowski on 09/30/28 11:12

I'd like to be able to "timeout" a user if they are inactive for X
minutes. Say, if they walk away from the browser leaving sensivive data
in plain view.

Is there any reason that using the header() function as below wouldn't
be a reliable way to do this (albeit user-unfriendly)? It "works for
me" on my Mac with various browsers, but I wonder how universally it
will work.

$timeout = 900; // 15 minutes

header('Refresh: ' . $timeout . ';url=www.whatever.com/logout.php');

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация