|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-29 13:35 UTC] tony2001@php.net
[2004-09-06 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 12:00:01 2025 UTC |
Description: ------------ I found a strange (to me at least) behaviour with sessions when using HTTPS. Let's say that $_SESSION["message"] contains "old_message". Take the following code: $old_message = $_SESSION["message"]; $_SESSION["message"] = "new message"; echo "The message was: ".$old_message; Now, over HTTP you would get the expected output ("old_message"). But over HTTPS the output will contain "new_message". You can use session_unregister("message") if you want $old_message to preserve its value, but this means you can't set anymore a new value for $_SESSION["message"].