#15884 [Com]: session_unregister does not work when followed by header("Location: ...")

From: Date: Thu, 15 Mar 2007 18:19:05 +0000
Subject: #15884 [Com]: session_unregister does not work when followed by header("Location: ...")
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110397@lists.php.net to get a copy of this message
ID: 15884 Comment by: software_freedom at member dot fsf dot org Reported By: jt at domainfactory dot de Status: No Feedback Bug Type: Session related Operating System: Linux PHP Version: 4.1.2 New Comment: Yup! Same here! But, my code is something like the following: index.php: session_start (); if (isset($_SESSION ['wow'])) echo 'Yes! '; else echo 'No! '; echo '<a href="http://localhost/bug.php">Go!</a>'; bug.php: session_start (); $_SESSION ['wow'] = 'Alright!'; session_commit (); header ('Location: http://localhost/index.php'); The answer is always 'No! '. So, sad! I will try to submit the backtrace if I have time ;-) My PHP version is 4.1.14 Previous Comments: ------------------------------------------------------------------------ [2002-06-01 00:00:06] php-bugs at lists dot php dot net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-03-28 04:22:28] jt at domainfactory dot de Sorry but currently I am unable to provide a backtrace. Maybe anyone who stumbled over this bug and has a bit of time can provide one ? (Also I forgot my bug-password, beat me) Jochen ------------------------------------------------------------------------ [2002-03-26 21:48:24] yohgaki@php.net To properly diagnose this bug, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Could you try to get backtrace? I guess PHP is segfaulting. ------------------------------------------------------------------------ [2002-03-11 10:15:00] jt at domainfactory dot de Yup looks like the two are related. The other bug was submitted an Mar 6th, I submitted mine on Mar 5th so at least the dupe is not my fault ;) Jochen ------------------------------------------------------------------------ [2002-03-08 15:08:30] baatsaam at hotmail dot com I believe this bug is related to bug #15909 (http://bugs.php.net/bug.php?id=15909) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15884 -- Edit this bug report at http://bugs.php.net/?id=15884&edit=1

« previous php.bugs (#110397) next »