I’m running smack into a problem when I try to set a cookie, and then redirect.
For example:
setcookie ("a", "$a", time() + 14400);
setcookie ("b", "$b", time() + 14400);
redirect_function("www.url.com");
I’ve run tests, and the cookie is being set as I can call it from the page, if I “//” the redirect function, but when I get passed to the new page where I actually want to use the cookie values, they seam to have disappeared in the redirect?
Has anyone ever had a similar problem? I’d love an answer since I’m almost pulling out hair...
I’m ultimately doing a user validation / authentication, are cookies the best method, or should they be combine with sessions? Or is there a better method all together, third party solutions, etc?
Any help will be appreciated greatly.
Bye for now, and thanks. !