Bug #73273 [Opn->Nab]: session_unset() empties values from all variables in which is $_session stored
| From: | yohgaki@php.net | Date: | Sun, 09 Oct 2016 17:54:04 +0000 |
| Subject: | Bug #73273 [Opn->Nab]: session_unset() empties values from all variables in which is $_session stored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204571@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73273&edit=1
ID: 73273
Updated by: yohgaki@php.net
Reported by: ghostovice at gmail dot com
Summary: session_unset() empties values from all variables in
which is $_session stored
-Status: Open
+Status: Not a bug
Type: Bug
Package: Session related
Operating System: Linux Mint 18
PHP Version: 7.0.11
Block user comment: N
Private report: N
New Comment:
This is what it suppose to do.
http://php.net/manual/en/function.session-unset.php
Previous Comments:
------------------------------------------------------------------------
[2016-10-09 13:28:50] ghostovice at gmail dot com
Description:
------------
session_unset() empties values from all variables in which is $_session stored
Test script:
---------------
<?php
session_start();
$_SESSION['test'] = true;
$var = $_SESSION;
session_unset();
print_r($var);
Expected result:
----------------
Array
(
[test] => 1
)
Actual result:
--------------
Array
(
)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73273&edit=1