php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48199 session bug
Submitted: 2009-05-09 09:05 UTC Modified: 2009-05-09 09:32 UTC
From: murtazakhursheed at hotmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2.9 OS: windows vista home premium sp1
Private report: No CVE-ID: None
 [2009-05-09 09:05 UTC] murtazakhursheed at hotmail dot com
Description:
------------
when i use $_session['xxx']="xxxx" and  access it on other page it says "Notice: Undefined variable: _SESSION in C:\wamp\www\session\session2.php on line xxxx"

Reproduce code:
---------------
<?php 
session_start();
$_SESSION['name']="xxxxx";
?>

other page

<?php 
print $_SESSION['name'];
?>

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-09 09:32 UTC] derick@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.

You need session_starT() there too.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 09:01:33 2024 UTC