|
Posted by Jerry Stuckle on 11/08/07 21:11
damezumari wrote:
> To find out were session variables are stored I included this
> instruction in my program:
> echo ini_get("session.save_path");
>
> The reply was /home/7604/data/tmp which is a folder on my server.
>
> I look at /home/7604/data/tmp and it is full of session files for
> today.
>
> Even so, if I have cookies blocked for my site http://easyquestion.net
> in IE6 or cookies turned off in Mozilla Firefox no session variabes
> are stored. I don't think it should be like this. I read somewhere
> that 'PHP sessions will work even if the user has cookies disabled."
>
> What am I doing wrong?
>
> Regards,
>
> Jan Nordgreen
>
>
Jan,
How PHP handles session id's is determined by the php.ini file. You
have two options: session.use_cookies and session.use_only_cookies.
If session.use_cookies is 1, PHP will attempt to store the session id in
a cookie. If it's 0, PHP will pass the session id in the URL.
If session.use_cookies is 1 and the cookies are disabled on the browser,
then session.use_only_cookies comes into play. If that is 0, PHP will
again pass the session id in the browser. And if it's 1, PHP will just
not pass the session id at all.
If you're on a shared host, you may be able to override these in your
..htaccess file. It all depends on what your host allows.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|