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
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: 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.

Patches

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 09:01:26 2025 UTC