Zend Tips – destroy session

I have been using sessions for a long time and always, when I don’t need them any more I simply use session_destroy to completly wipe out the session information in the server. The issue with this is that sessions, by default, uses cookies to propagate the session ID and when you use session_destroy it will not unset the cookie. In order to completly destroy a session you must use the session_destroy function and unset the cookies.

Check the http://www.php.net/function.session-destroy to get better information of how sessions work.

Advertisements

About mcloide

Making things simpler, just check: http://www.mcloide.com View all posts by mcloide

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: