php.net |  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:
MUST BE VALID
Solve the problem:
40 - 4 = ?
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-02 11:51 UTC] waldschrott@php.net
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] sniper@php.net
Not enough info, no feedback.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC