Page 1 of 1
Valid Session characters
Posted: Fri Feb 23, 2007 12:22 am
by nwp
Among Them which are not allowed as session characters (e.g. as session variable's Key or Value)
Please I Need Urgent reply
Code: Select all
'<space> ', '+', '_', '*', '&', ':', '-', '@', '=', '|'
Posted: Fri Feb 23, 2007 12:33 am
by neel_basu
I think
Making Some problem
Posted: Fri Feb 23, 2007 12:46 am
by feyd
I don't understand the question.
Posted: Fri Feb 23, 2007 1:05 am
by dude81
I think he is meaning in the session array, can he assign any of the following list of characters he mentioned to the array key or array value. Is that valid in php.
PHP validates all as long as you pass them as strings, I mean to say as long as you put your value in quotes it validates.
Posted: Fri Feb 23, 2007 2:49 am
by neel_basu
All the Characters he have used Can be used as
$_SESSION["<char>"] = "<char>";
except the |
If he Use $_SESSION["|"] = "|";
The Session variable will probably get set when the php script gets executed
After that when when someone wants to get the value of the session variable
The Compleate Session Will be erased