You are here: Session object destruction failed « PHP « IT news, forums, messages
Session object destruction failed

Posted by Dan Rossi on 09/07/05 13:55

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

 

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

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