|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-11 22:31 UTC] johannes@php.net
[2009-01-12 06:48 UTC] opurahman at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 09:00:01 2025 UTC |
Description: ------------ function session_unset() reset local variables. I was trying to reset session variables after storing two values from session. It reset my local variables. Lets take a look into the codes bellow. Reproduce code: --------------- session_start(); $message = sprintf('%s', $_SESSION['message']); echo('Here Message: # ' . $message . '<br />'); session_unset(); echo('Here Message: # ' . $message . '<br />'); // in this line, the variable $message has been unset. Expected result: ---------------- It should display the value of $message