NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP Sessions, Expiration, and all that

Joseph Crawford codebowl at gmail.com
Thu May 3 23:33:31 EDT 2007


I would suggest creating a custom session handler and storing the
sessions in the db, read up on this.

http://www.php.net/manual/en/function.session-set-save-handler.php

With a custom session handler you can set a timeout and have the
sessions deleted from the database after 6 hours passes.  A custom
handler allows much better flexability over the built in sessions.

-- 
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
http://www.codebowl.com/
Blog: http://www.josephcrawford.com/
1-802-671-2021
codebowl at gmail.com



More information about the talk mailing list