Session object destruction failed
| From: | Dan Rossi | Date: | Wed, 07 Sep 2005 10:55:42 +0000 |
| Subject: | Session object destruction failed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-221957@lists.php.net to get a copy of this message | ||
Hi there, I am using a pear session package to handle my sessions. However I am trying to destroy a url based non cookie session and then start a cookie based session however i am trying to set the session cookie with an expiry date, as ive been having complications with sessions expiring to wanted the cookie to expire in 2 days. I have googled and some ppl have had issues with session a session cookie after session_destroy ?? Any ideas?
Here is how i set it up
HTTP_Session::destroy();
HTTP_Session::useCookies(true);
session_cache_expire(time()+60*60*24*24);
HTTP_Session::start('FeedPlayer');
setcookie(session_name(),session_id(),time()+3600*24*2);
HTTP_Session::setExpire(time()+60*60*24*24);
HTTP_Session::setIdle(time()+60*60*24*24);
Sep 07 06:38:28 ident [warning] session_destroy(): Session object destruction failed in /usr/local/lib/php/HTTP/Session.php at line 204