|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23245 session.autostart = 1 prevents session data retention accross page executions
Submitted: 2003-04-16 13:00 UTC Modified: 2003-04-28 11:46 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: tim at gustnado dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.3.2RC1 OS: Linux 7.3 / 8.0 / 9.0
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: tim at gustnado dot com
New email:
PHP Version: OS:


 [2003-04-16 13:00 UTC] tim at gustnado dot com
when php.ini session.autostart is set to 1
the session file is created in /tmp and keys can be registered via session_register() functions.

data can be assigned to the keys using the super global array $_SESSION and access in the scope of the page execution.

On the next access of the session, the keys are still registered, but the data is missing.

The above issue occurs regardless of the use of session_start().

When session.autostart is set to 0, and the session_start() command is used, sessions work normally.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-21 10:11 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2003-04-28 11:46 UTC]
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-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 29 15:01:25 2023 UTC