You are here: Automatic log out « PHP « IT news, forums, messages
Automatic log out

Posted by Adrian Bruce on 10/04/51 11:33

Hi

I currently use an automatic logout out system that sets a time out in
two ways.

(If the ip address on computer is recognized then set timeout to 10
mins, if not then set to 2 mins.)

1) The time out setting is used to create a meta refresh tag that will
re-direct the user to the logout page after X seconds.
2) At the beginning of each page i set a variable with the current time
and check to see if the difference between the previously set variable
and the now current time is greater than X seconds, if so then log the
user out.

I know meta refresh is not to be relied on and that is why i use the 2nd
method as well, but i have had varied reports that this system does not
work, i.e. it logs people out to quickly.

Does anyone know a better way of doing this or improvements?? it would
also be nice to stop the pages displaying after a time out when a user
presses the back button!

Thanks a lot in advance

Adrian

 

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

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