Glabal variables

From: Date: Thu, 24 Apr 2003 17:27:02 +0000
Subject: Glabal variables
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-19591@lists.php.net to get a copy of this message
I need to use session variables in my php application and so define then using <?php session_start(); session_register("user"); but for this I need to set the register_global to On. In my ini file i see the following comment: ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. register_globals = Off What other way can i use session variables in my application. Please help, Thanks

« previous php.windows (#19591) next »