#22068 [Opn]: Access $_SESSION

From: Date: Wed, 05 Feb 2003 11:24:58 +0000
Subject: #22068 [Opn]: Access $_SESSION
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351615@lists.php.net to get a copy of this message
ID: 22068 Updated by: derick@php.net Reported By: AchimWinkelmann@web.de Status: Open -Bug Type: Session related +Bug Type: Documentation problem Operating System: Windows XP PHP Version: 4.3.0 New Comment: Documentation problem Previous Comments: ------------------------------------------------------------------------ [2003-02-05 05:23:57] AchimWinkelmann@web.de The manual says at topic XCIII. SESSION HANDLING FUNCTIONS under headline EXAMPLES within the NOTE, 'you do not need to use the global keyword for $_SESSION'. In fact you 'may not use the global keyword' when accessing $_SESSION from within a function, otherwise a different global variable seems to be created/accessed (PHP 4.3.0, WinXP)! Maybe it is no bug, but I miss any sematically sense. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22068&edit=1

« previous php.doc (#969351615) next »