SID in URLs
Okay I have tried finding all sorts of syntax and instructions on using SID, but I can still not figure out how to pass SID and a variable in a URL. The href line looks like:
I have tried several other variations as well. Any ideas on how to pass SID along would be appreciated. (W/O Cookies.) Thanks all...
echo ("<a href='$PHP_SELF?=sid&viewtable=". "$tnames"."'">$tnames</a>");
I am guessing here - but I imagine that there is probably something you set in php.ini that determines how the SID is to be passed along - cookies or url?
Remember that SID is a PHP constant and needs to be echoed out like any other var <?=SID?> or <? echo SID; ?>
You recompile php with --enable-trans-sid this will automatically append the session id to every link on a page where session_start(); is called when cookies are unavailable.
SID in variable url
I read your thread last night. I've been lookingfor a solution to exactly the same problem.
After three nights of t&e coding I think I've got it.
<a href=$url?sessionid=$PHPSESSID>add to cart</a>
don't forget to encapsulate in php tags