H(o)i,
2 questions about passing PHPSESSID over all pages:
1) I do not get exactly when I have to write <?=SID?> at the end of an URL.
Sometimes, I omit it but it is passed on anyway.
But sometimes, it looks like the PHPSESSID doesn't go through.
I want it strange, especially because I blocked all cookies in my browser options.
Why is that?
2) If I write on my PHP code this (on search.php):
<form name='xxx' action='result.php?<?=SID?>' method=post>
Then the URL of the following page will look like:
[url]http://.../search.php?[/url]
If I come back to the search.php page and take a look at the source code, then I get this:
<form name='xxx' action='result.php' method="post">
<input type="hidden" name="PHPSESSID" value="eec187bc890e46f3d56343a222a7df86" />
But I have a form on the home page and do the very same thing, then it behaves "normaly" (PHPSESSID is in the URL and source code looks like on my code (eg no hidden input))
Is that normal doc'?
3) If all of this depends on the session.use_cookies (set to 1 right now) parameter in the php.ini file (does it?), is there a way to set it dynamically? (like for the magic quotes runtime f.e.).
The parameter session.use_trans_sid is set to 1.
Thanks in advance for your help!
Nobru