Title says it all. Does anyone have a work-around to make the session id get appended to non-relative links?
I read somewhere about setting the cookiedomain will trick it, but it doesn't seem to be working for me.
Any other methods?
from the manual: http://www.php.net/manual/en/ref.session.php
Note: Non-relative URLs are assumed to point to external sites and hence don't append the SID, as it would be a security risk to leak the SID to a different server.
if you still want to unconditionally append the session id to all links you can always simply tack it on yourself:
echo '<a href="http://www.example.com/index.php?' . session_name() . '=' . session_id() . '">link</a>';
I thought there might be some trick to get it to append to absolute urls.