Jump to content

Session_destroy()


Accurax

Recommended Posts

I need to create a "log out" button for my website....... is it best to use session_destroy() or is there a better way?

Also, if i am to use this, is it possible to have it activated by a simple text link, rather that a form ??

Thanks guys

(plenty of info around on logging in.... cant find a thing about logging out lol)
Link to comment
https://forums.phpfreaks.com/topic/29916-session_destroy/
Share on other sites

That's the best way i would say, kills the sessions permanently.

Other then that there is only session_unset() that i can think of
Here is the link for the info: [url=http://www.php.net/manual/en/function.session-unset.php]http://www.php.net/manual/en/function.session-unset.php[/url]
Link to comment
https://forums.phpfreaks.com/topic/29916-session_destroy/#findComment-137428
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.