In article <030d01c12f2f$49ca7d20$0b01a8c0@ANDreY>,
[EMAIL PROTECTED] (Andrey Hristov) wrote:
> <?php
> session_start();
> if (!session_is_registered("allowed")){
> $allowed=3306;
> session_register("allowed");
> }
> var_dump($allowed);
> ?>
>
> called with :
> http://192.168.1.11/test2.php?allowed=5000
>
> returns :
> int(3306)
That sets the value of the global variable $allowed to 5000, but of course
setting a variable isn't the same thing as session registering a variable.
Did you perhaps mean to test for...
if(!isset($allowed))
...instead?
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]