> --------------------[snip]--------------------
> >It is "--enable-trans-sid" and it is turned on. However, the
> >problem is that it doesn't work. :( If the user does not have
> >cookies turned on, the SID will not be sent through to the next
> >page on HREFs (I know you have to do it manually when using
> >the header() function, but it should be automatically appended
> >when using HRREFs, but it's not. :( )
> --------------------[snip]--------------------
> A little checklist:
> Have you:
> - checked the INI file setting "url_rewriter.tags"? With the default
> installation this is empty, the needed contents are on a comment line.
> The line should read
> url_rewriter.tags =
> "a=href,area=href,frame=src,input=src,form=fakeentry"
This wasn't in there, but have since added it.
> Are you:
> - explicitly starting a session with session_start() ?
> if not, try to explicitly start it
Yes
> - receiving an (old or outdated) PHPSESSID cookie from the browser?
> Maybe Php decides it's not necessary to rewrite the URLs
No.
This still is not working and *any* help at all on how I can get it
working would be greatly apprecaited!!
Here are the relevant directives (as reported by PHPINFO:
Directive Local_Value Master_Value
session.use_trans_sid 1 1
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.serialize_handler php php
session.use_cookies On On
Here is some sample code I am using. All I am doing
here is to test to see if the SESSID is being passed on
the URL when an HREF is clicked when the browser
has cookies turned OFF. If cookies are turned on, using
this same code, I'll get the same session ID reported
every time. But with cookies turned off, I get different
session IDs every time.
Page1:
<script language="php">
session_start();
echo "Your session ID is : " . session_id() . "<br><br>\n";
echo "<a href=\"page2.php\">Page 2</a><br>\n";
</script>
Page2:
<script language="php">
session_start();
echo "Your session ID is : " . session_id() . "<br><br>\n";
echo "<a href=\"page1.php\">Page 1</a><br>\n";
</script>
Any insight into my problem would be greatly apprecaited.
Chris