|
Posted by Rik on 08/18/06 08:42
lorenzdominic_@hotmail.com wrote:
> Hi thanks Bartek for your help.
> If the Session ID is "silently added" what is the need to append a
> Session ID to a URL when not using cookies?
The user/UA has to identify itself. There are mainly 3 possibilities:
1. Cookie (preferred).
2. POST variable
3. GET variable
> As this is the way I thought I had to do it? I was appending the
> Session ID to the URL when accessing another page.
When using GET variables, HTTPS is a must.
> However it appears this is not required and all the tutorials on
> appending a Session ID to a URL are pointless.
This is one of the things PHP will do automagically for you. Standard it will
try to set a cookie, unless you tell it otherwise. When using a cookie, no
url-rewriting is necessary.
Check the manual: http://www.php.net/manual/en/ref.session.php
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|