|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8527 Session does not work outside the folder it was created in
Submitted: 2001-01-03 00:04 UTC Modified: 2001-03-16 17:26 UTC
From: neville_lewis at yahoo dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.0 OS: Windows 95
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: neville_lewis at yahoo dot com
New email:
PHP Version: OS:


 [2001-01-03 00:04 UTC] neville_lewis at yahoo dot com
I have started a session in a file in one folder however when that page calls another file in another folder then the session variable does not carry.... I am using the session_start() statement in every page in the 
other folder ..... 

It works fine with all the files in the same folder that the session was started in, but when it comes to the files in any other folder it does not work...... 

I am using php4 with Apache on win95 downloaded from

If anyone knows about this problem or knows where I can get an answer to it please contact me at

I want to write one login script for my site and keep it in one folder and call that in all the pages in various folders.....


Neville Lewis.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-16 17:26 UTC]
Please upgrade. The default is path=/.
 [2003-10-03 03:47 UTC] gilad dot buzi at bcn dot concatel dot com
This is not a bug. You need to set your session.cookie_path (in php.ini) to / :
session.cookie_path = /
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Jun 09 11:03:41 2023 UTC