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
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.
(description)
Block user comment
Status: Assign to:
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

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: Sun Jun 02 09:01:30 2024 UTC