|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5915 Session variable cannot be set inside a function
Submitted: 2000-08-02 04:24 UTC Modified: 2000-08-20 03:04 UTC
From: gcalow at yahoo dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.0 OS: NT 4
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gcalow at yahoo dot com
New email:
PHP Version: OS:


 [2000-08-02 04:24 UTC] gcalow at yahoo dot com
If your page contains include files and PHP functions inside the include files you can not set a session variable inside that function. It will not be set. It can be set outside of the function only.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-02 11:51 UTC]
Please provide a reduced code fragment producing this behaviour.

Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
 [2000-08-20 03:04 UTC]
Not enough info, no feedback.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon May 29 19:03:42 2023 UTC