> Is there a bug in php4.2.1 dealing with sessions?  I am using $_SESSION to
> set my session variables and it will not work.  Can anyone offer examples
> that they have used that work?  I am going insane.

I had similar problem, so I realized that  $_SESSION["name"]=value starts
working after something like that (copied from PHP docs):

// hack to enable SESSION - my comment
if (!isset($HTTP_SESSION_VARS["count"])) $HTTP_SESSION_VARS["count"] = 0;
else $HTTP_SESSION_VARS["count"]=$HTTP_SESSION_VARS["count"]+1;

"count", however doesn't increment (funny?) but without above following line
wouldn't work:

    $_SESSION["id"]=1;

I asked few days ago why does it work this way, but nobody knew ("Session -
funny or magic?"). I don't know also, but it works on my server, so you can
try too.



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to