Jump to content

[SOLVED] Kill session


SirChick

Recommended Posts

And if that was confusing ^ above.. here is an explanation

 

Lets say you have 3 sessions variables (right....)

 

$_SESSION['username'];

$_SESSION['password'];

$_SESSION['logged_in'];

 

If you want to remove 1 of the sessions, then do this:

unset($_SESSION['username']);

 

If you want to remove all of them (all 3 in this example), then do this:

session_destroy();

 

 

There ya go :)

Link to comment
https://forums.phpfreaks.com/topic/73882-solved-kill-session/#findComment-372816
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.