Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kill Session 2

Status
Not open for further replies.

CassidyHunt

IS-IT--Management
Jan 7, 2004
688
US
What is the best method to kill a session completly?
 
Here is the solution I use:
Code:
$_SESSION = array();
if (isset($_COOKIE[session_name()])) setcookie(session_name(), '', time()-42000, '/');
session_destroy();

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top