SCook Posted July 2, 2007 Share Posted July 2, 2007 Has anyone else had trouble setting more than one cookie? I think I am. Any solutions, if so? Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 2, 2007 Share Posted July 2, 2007 Post your code, and tell us the error it is giving you. Quote Link to comment Share on other sites More sharing options...
SCook Posted July 2, 2007 Author Share Posted July 2, 2007 There is no error, per se, it just doesn't seem to be creating the cookie. The code to make it is: setcookie("default", $var, time() * 60 * 60 * 60 * 365); It's the same that I use to create another cookie, which works fine. I did see something on a google search about a php bug regarding multiple cookies, but it was a membership site and I don't want to sign up. Anyway, when I output the cookie, or break the variable up into an array, nothing is there. But I'm getting no error at all. Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 2, 2007 Share Posted July 2, 2007 Maybe you have a structure error in your script and the code isn't ever reaching the point where it sets the cookie? Are both of your cookies registered in the same spot of your script? Post part of your code so we can see if we can find anything that could possibly causing the problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.