php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36439 PHP 5 Lost page by page session...
Submitted: 2006-02-18 03:20 UTC Modified: 2006-02-18 16:31 UTC
From: wils at wilsolutions dot com dot br Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.1.2 OS: Windows 2003 Server
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wils at wilsolutions dot com dot br
New email:
PHP Version: OS:

 

 [2006-02-18 03:20 UTC] wils at wilsolutions dot com dot br
Description:
------------

I am trying strat session in one page and read this sessions vars in other pages but the  session vars apear only in the previous page.

Sample:

page1.php - Start and set the session vars

page3.php - Read the sessions var initialized.


Reproduce code:
---------------
page1.php
<?php
session_start();
$_SESSION['favcolor'] = 'green';
echo $_SESSION['favcolor'];
echo '<br/><a href="page2.php">page 2</a>';
?>


page2.php
<?php
session_start();
echo $_SESSION['favcolor'];
echo '<br/><a href="page1.php">page 2</a>';
?>


Expected result:
----------------

green

Actual result:
--------------
nothing

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-18 16:31 UTC] mike@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 21 20:00:03 2025 UTC