PLEASE HELP!! {insert squeekly lil' voice 😃}
setcookie ("dms", "session_id&" . $data_to_cookie[session_id] . "&userid&" . $data_to_cookie[userid] . "&user&" . $data_to_cookie[user],time()+3600, "/");
Can't seem to get rid of that dam %26 replacement of my &.
I get cookies set as:
dms=session_id%2630 ..... etc instead of
dms=session_id&30 ..... etc.
I've tried escaping with \& etc but this then gets cookied as:
dms=session_id%5C%2630 ..... etc
{SIGH} 🙁
Now I can work with these %26 with javascript coding that I am doing and they'll be read as &.
But the reason I am writing such a nasty looking setcookie is because I wish this cookie to be easily extracted into perl code as a hash.
Perl stores hashes with the & as the seperater between property and value.
{Ok.. you're probably curious why I'm using php AND perl... well I'm integrating a php forum into a site management program written in perl, and both require user authorisation to gain access... The biggest part of the programming will be in perl, consequently I require perl to gain access to cookie data as easy and effectively as possible}
MANY MANY THANKS IN ADVANCE 🙂
RIPP