numerodix
Fri 19th Dec '03, 2:18pm
Ok, I want to use the SID constant and the php manual says
Alternatively, you can use the constant SID which is always defined. If the client did not send an appropriate session cookie, it has the form session_name=session_id. Otherwise, it expands to an empty string. Thus, you can embed it unconditionally into URLs.
In other words, I don't want to use cookies at all. I want to turn off cookies in runtime, and I wanna avoid setting it globally on the server in php.ini.
So how can I turn off cookies altogether in my code? It's also a matter of security and it helps if there are no cookies being set.
Alternatively, you can use the constant SID which is always defined. If the client did not send an appropriate session cookie, it has the form session_name=session_id. Otherwise, it expands to an empty string. Thus, you can embed it unconditionally into URLs.
In other words, I don't want to use cookies at all. I want to turn off cookies in runtime, and I wanna avoid setting it globally on the server in php.ini.
So how can I turn off cookies altogether in my code? It's also a matter of security and it helps if there are no cookies being set.