Posted by joeblow on 11/24/05 00:15
For weeks I've been unable to get $_SESSION to retain data if I use
setcookie(). FINALLY I found out why:
setcookie(blah, blah...);
session_start();
I was calling them in this order. I can't believe it. Now that I've started
the session before setting the cookie the sessions work beautifully.
I feel like such a dunce. I couldn't believe that no one was having the
problems I was having. Now I see why.
Thanks for your input, J.O. and arturo. I appreciate it very much. You
caused me to look where I thought everything was alright, when it wasn't.
Finally, now I can move on.
Best to all...
signed: One happy camper
[Back to original message]
|