You are here: Unique, "hard" session timeout on a shared server « PHP « IT news, forums, messages
Unique, "hard" session timeout on a shared server

Posted by kjohnson on 10/03/88 11:05

I have researched a few ways to set a "hard" session timeout on a shared
server. Does anyone have comments on the advantages/disadvantages of each
approach? Are there other alternatives?

1. Override the php.ini settings in an .htaccess file:

php_value session.gc_maxlifetime 900
php_value session.gc_divisor 1
php_value session.gc_probability 1

2. Put a "previous request" timestamp into the session, and compare it to
the current timestamp on a request.

3. Set a <meta> refresh to a "kill session" script.

Will there be a performance hit for all applications on the server under
the first method?

TIA

Kirk

 

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

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