Utherr12 Posted October 17, 2010 Share Posted October 17, 2010 Hey i want to know how can i set the expiration period of a cookie that's being made from a session_start funnction ? the PHPSESSID cookie. Link to comment Share on other sites More sharing options...
Synook Posted October 17, 2010 Share Posted October 17, 2010 The session cookie is, by definition, automatically deleted at the end of the session, i.e., when the browser closes. If you don't want that to happen, use persistent cookies instead. Link to comment Share on other sites More sharing options...
Utherr12 Posted October 17, 2010 Author Share Posted October 17, 2010 I want for it to be deleted at the end of a session but i also want it to be deleted after a period of time, whichever comes first.can i use setcookie on that one and overwrite the expiration date ? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 17, 2010 Share Posted October 17, 2010 http://www.php.net/manual/en/function.sess...okie-params.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.