Jump to content

SESSION problem


eranwein

Recommended Posts

If you want to remove the $_SESSION['some_array'] totally, use

[code]unset($_SESSION['some_array']);[/code]

If you want to set it to a blank array:

[code]$_SESSION['some_array'] = array();[/code]

Set it to a blank string:

[code]$_SESSION['some_array'] = "";[/code]

If you want to remove a single element of the array $_SESSION['some_array']:

[code]unset($_SESSION['some_array']['some_value']);
or
$_SESSION['some_array']['some_value'] = "";[/code]
Link to comment
https://forums.phpfreaks.com/topic/4971-session-problem/#findComment-17565
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.