Page 1 of 1

Transparent session issues....

Posted: Sun Sep 22, 2002 9:11 am
by nielsene
Please correct me if I'm wrong, but when using transparent sessions, ie --enable-trans-sid, so that you don't need to worry about whether the user accepted your session cookie, there is no way to change the resulting link that PHP autogenerates?

The problem, php appends "&PHPSESSID=foo" to all internal links. However, to be valid XHTML the & needs to be converted to its entity &. I can easily do this conversion with str_replace, but that's always before PHP works its magic.....

Posted: Sun Sep 22, 2002 9:22 am
by nielsene
Sorry for the stupid post, I found the answer, just had to uncomment a line in php.ini to change the argument_seperator.output from "&" to "&"

Posted: Sun Sep 22, 2002 9:46 am
by Coco
yeah i was about to suggest that :lol:

honest :oops:

Posted: Sun Sep 22, 2002 11:45 am
by hob_goblin
I found that, if i did something like

<a href="file.php" target="_self">Valid link</a>

it would append the whole deal.. but if i did this:

<a href="http://mydomain.com/file.php" target="_self">Valid Link</a>

it wouldn't, odd. I'll ask my host about that so i don't have to type the whole deal

Posted: Mon Sep 23, 2002 8:45 am
by nielsene
Along the same lines, is there a way to make the <input> added to forms to propagate the session a proper empty element?