$_SESSION auto registration
I have registered several session variables with common names. Things like "username", "ID", and whatnot. If I were to create a variable in the global context with that name, I overwrite the session variable.
I would just simply turn off the auto registration if I could, but I don't have access to the PHP config on my server.
What do you people suggest I do to avoid this variable name collision? Unruly session variable names would be one suggestion... I also accompany each session page with an object, I don't know if that can be used in some way to store these values...
I would just simply turn off the auto registration if I could, but I don't have access to the PHP config on my server.
What do you people suggest I do to avoid this variable name collision? Unruly session variable names would be one suggestion... I also accompany each session page with an object, I don't know if that can be used in some way to store these values...
