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

New Improved Search!

 


The DDRK link is back online.
We got a one week service interruption, sorry.
(23-30/01/2010)

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

 Add This Article To:
 del.icio.usDel.icio.us  diggDigg  googleGoogle  spurlSpurl
 blinkBlink  wongWong  simpySimpy  yahooY! MyWeb 
EContact
browser fav
page generated in 61.359170 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page