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

Posted by "Gustav Wiberg" on 09/07/05 16:58

Hi there!

How does your code look like?

/G
http://www.varupiraten.se/

----- Original Message -----
From: "Dan Rossi" <php@electroteque.org>
To: "PHP LIST" <php-general@lists.php.net>
Sent: Wednesday, September 07, 2005 12:55 PM
Subject: [PHP] Session object destruction failed


> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.18/91 - Release Date: 2005-09-06
>
>

 

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

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