Hi!
I have discovered that for using session functions, we have to set an option (register_globals to on) in the webserver configuration file.
This is not desirable and there are security issues behind this. So our system administrator wants to turn this option off.
However because of this my session code is not working:
My application is such that any user can login into my software. Whenever any user is authenticated, i register the username of the user for that sesion. by session_register('$Login') function.
The program flow continues in different files after this.
Further, when the user wants to update any thing, or make any more reservations, I can use the variable $Login in any other file just by a function session_start.
So what i do is:
First file: session_register('$Login')
Program flows.....in different files....
Second file: session_start('$Login')
print "Welcome $Login ";
However if register_global is turned OFF, i cannot use any of the session variables.
Can anybody please tell me what to do? So that i can use my variables.
Thanks
-Vaidehi