visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Web :: General :: Knowledge Base : how to properly destroy a PHP session ? and with cookie ?


By: VGR France  Date: 17/07/2006 08:42:57  English  Points: 0 Status: Answered
Quality : Excellent

//VGR REM this is code copy-pasted bt AES from www.php.net/manual/en // reset session $name=session_name(); if (isset($_COOKIE[$name])) { setcookie($name, '', time()-42000, '/'); } unset($_COOKIE[$name]); // Finally, destroy the session. session_destroy(); unset($_SESSION); unset($_COOKIE[$name]); // if needed, get new session id afterwards, doing a session_start()


Do register to be able to answer

EContact
browser fav
page generated in 105.311870 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page