php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webccdev2 at gmail dot com
New email:
PHP Version: OS:

 

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

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.

Note: 

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.

Patches

Pull Requests

History

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] kalle@php.net
-Status: Open +Status: Feedback
 [2011-02-12 08:44 UTC] kalle@php.net
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: Thu Dec 26 23:01:28 2024 UTC