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

Posted by Dan Rossi on 09/29/91 11:28

All standard apache/php4 stuff. The first session is a non cookie
session

ini_set('session.use_cookies', 0);
session_name('sID');
session_start();
ini_set('session.gc_maxlifetime', 14440);

ill attempt the sleep(1) i guess

On 05/10/2005, at 6:36 PM, gustav@varupiraten.se wrote:

> Hi there!
>
> Are you running IIS? It seems to be a IIS-specific program when
> googling...
>
> Here is My thoughts:
>
> Can the problem be that session_use_cookies initate before all sessions
> are totally destroyed? Does the code work with only session_destroy() ?
>
> I would try to set a sleep - statement after session_destroy() and see
> if
> it is any difference..
>
> /G
>
>> :| The php compile error was the subject thats what keeps being
>> triggered and i get emails from my system about. Session object
>> destruction failed. I have googled about this yes it was something to
>> do with the session_set_cookie after session destroy which triggers
>> this but no fix.
>>
>> On 05/10/2005, at 5:14 PM, gustav@varupiraten.se wrote:
>>
>>>> hi there, i had asked this one a while ago but no replies. I am
>>>> having
>>>> this issue calling session_destroy on a non cookie session before
>>>> creating a cookie based one. Here is the code
>>>>
>>>> @session_destroy();
>>>> ini_set('session.use_cookies', 1);
>>>> session_name('thename');
>>>> session_cache_limiter('no_cache');
>>>> session_cache_expire(172800);
>>>> session_set_cookie_params (172800, '/', 'thedomain',0);
>>>> session_start();
>>>> ini_set('session.gc_maxlifetime',172800);
>>>>
>>>>
>>>> lemme know thanks
>>>>
>>>> --
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>> Hi there!
>>>
>>> What is the question / problem?
>>>
>>> /G
>>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>

 

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

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