|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
10 - 9 = ?
Subscribe to this entry?

 [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