|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53982 Session Values Lost after header redirection
Submitted: 2011-02-10 14:33 UTC Modified: 2013-02-18 00:34 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: webccdev2 at gmail dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.2SVN-2011-02-10 (snap) OS: Windows Server 2003 s2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: webccdev2 at gmail dot com
New email:
PHP Version: OS:


 [2011-02-10 14:33 UTC] webccdev2 at gmail dot com

I'm having the session related problem for last one week. I'm using prado framework. It is a normal log in mechanism code. After the successful log in it redirects to my account page. Before redirection all the session values are stored correctly after the redirection (using header) all the session values are automatically made as null. I used all kind of redirection like javascript (window.location), meta (refresh). But i dint get any success.


Currently I'm working in PHP 5.2.14, Apache 2.2.8. But the same code working fine in PHP 5.2.1 & 5.2.2 with same apache version.

I used Firefox 3.6.12 & IE 7, both have the same issue.

Expected result:
After Redirection all session values should carry the values to my account page

Actual result:
All session values are null.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-10 14:40 UTC] webccdev2 at gmail dot com
I used all the possibilities which is given in this site and some other sites like session_write_close(), java script & meta redirection etc., Here my question is, the same code is working fine in PHP 5.2.1 & 5.2.2 why not in 5.2.14. There is no browser, cookie, HTTP issues. Then why?

can anyone help me to fix this issue. It will helpful for most of the Web developers.

Thanks in Advance.
 [2011-02-12 08:44 UTC]
-Status: Open +Status: Feedback
 [2011-02-12 08:44 UTC]
Does it still fail if you transfer the session_id() in the query to the page you are redirecting to like:

header('location: /test/?' . session_name() . '=' . session_id());

In either case, does it work as if written without the framework code, if not then you should report it to their tracker.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 17:01:27 2024 UTC