DooPHP IRC channel


Doo::session's destroy() isn't complete

Discussion about weird behaviors of DooPHP.

Doo::session's destroy() isn't complete

Postby roman » Sun Nov 27, 2011 6:17 am

It merely calls session_destroy(), as far as core PHP calls are concerned. According to http://php.net/manual/en/function.session-destroy.php,

session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session, or unset the session cookie. To use the session variables again, session_start() has to be called.

In order to kill the session altogether, like to log the user out, the session id must also be unset. If a cookie is used to propagate the session id (default behavior), then the session cookie must be deleted. setcookie() may be used for that.


I would like destroy() to do the whole thing. Please extend it. If somebody needs the current version, then both behaviors could be kept, one of them could be chosen by an argument to the method.
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: Doo::session's destroy() isn't complete

Postby roman » Tue Dec 06, 2011 5:04 pm

Any reaction from the contributors/committers?
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: Doo::session's destroy() isn't complete

Postby RichardM » Tue Dec 06, 2011 6:51 pm

Hi,

Sorry, simply not had time to look into this one. Any chance you want to post up some code to sort this issue and I'll be happy to check it over and implement it?


Richard
Note: code samples my not be 100% accurate.
RichardM
 
Posts: 1329
Joined: Sun Aug 30, 2009 6:03 pm
Location: Cumbria, UK

Re: Doo::session's destroy() isn't complete

Postby roman » Wed Dec 07, 2011 9:55 pm

Hi,

OK, I will do that, Richard. This isn't an urgent issue, so I will do this a little later, when my urgent tasks are complete.

Thanks
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm


Return to Bugs Report

Who is online

Users browsing this forum: No registered users and 1 guest