Page 1 of 1

Session/Cookie problem.

Posted: Fri Jan 30, 2004 1:28 pm
by Gen-ik
This might sound a bit stooopid but is it possible to use sessions when someone has got their browser set-up not to accept cookies?

It seems that the default cookie setting for IE (and possibly other browsers) stops PHP using $_SESSION :? And there's me thinking that people who don't use cookies are just paranoid!

Any help or work-arounds would be tops.

Posted: Fri Jan 30, 2004 1:33 pm
by markl999
Nope, but if you have session.use_trans_sid set to 1 then it will revert to putting the session id in the url if cookies are disabled.

Posted: Fri Jan 30, 2004 1:50 pm
by Roja
quoting the fine manual..
php manual wrote: 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.
So, yes, with much effort, you can do so manually as well