Re:note 42594 rejected and deleted from ref.session by notes editor betz

From: Date: Thu, 12 Aug 2004 07:11:00 +0000
Subject: Re:note 42594 rejected and deleted from ref.session by notes editor betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74536@lists.php.net to get a copy of this message
Hello, I understand the terms and conditions for posting to the on-line manual. However, the issue I posted about is not help request. And I'm not sure that it's a bug either, it might very well be the normal behaviour. Whatever the case, the reason for posting was to let others know that this behaviour does happened and that it's not a bug in their own code. Might save them some time and frustration. Best regards, Sebastian Paul Avarvarei php-notes@lists.php.net (8/12/2004 5:42 AM): >You are receiving this email because your note posted >to the online PHP manual has been removed by one of the editors. > >Read the following paragraphs carefully, because they contain >pointers to resources better suited for requesting support or >reporting bugs, none of which are to be included in manual notes >because there are mechanisms and groups in place to deal with >those issues. > >The user contributed notes are not an appropriate place to >ask questions, report bugs or suggest new features; please >use the resources listed on <http://php.net/support> >for those purposes. This was clearly stated in the page >you used to submit your note, please carefully re-read >those instructions before submitting future contributions. > >Bug submissions and feature requests should be entered at ><http://bugs.php.net/>. For documentation errors use the >bug system, and classify the bug as "Documentation problem". >Support and ways to find answers to your questions can be found >at <http://php.net/support>. > >Your note has been removed from the online manual. > >----- Copy of your note below ----- > >I found a strange (to me at least) behaviour with sessions when using HTTPS and thought to share >it, might save others some headaches. > >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". > >I don't know why this happends, nor do I know a proper workaround. 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"]. >

« previous php.notes (#74536) next »