a simple clarification about $_SESSION
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

a simple clarification about $_SESSION

From: Joseph S. <js_dev@rediffmail.com>
Date: Sun Sep 25 2005 - 22:29:52 CEST

If I define
$_SESSION['x']=5;

and later, use $x say, as,

$y = $x * $x;

will it work only if register_globals is set to On?

Am i correct in saying that usage of $x in place of $_SESSION['x'] will
not work if register_globals is Off?

TIA,
Regards,
Joseph S.
Received on Tue Oct 18 02:27:53 2005