SCook Posted October 29, 2007 Share Posted October 29, 2007 Hi gang, I am having a wierd problem. When I use setcookie(), and this has happened on two different sites now, and I go back to the site to be autologged in, which is why I set the cookie, the site will not load, it just sits there. Has anyone run into this and what can I do to prevent it. I am using the same login code I wrote for several other projects, and it works fine there. On one version, the login will reload the exact page and replace the navigation iwht new navigation. On another version, the form submits to a toally different page. Point is, I've used several varieties and haven't had a problem until now. Any help would be greatly appreciated Quote Link to comment https://forums.phpfreaks.com/topic/75235-cookies-locking-up-the-website/ Share on other sites More sharing options...
cooldude832 Posted October 29, 2007 Share Posted October 29, 2007 try running it in Firefox you might of created an infinite loop and FF should say the page will never result or something like that Quote Link to comment https://forums.phpfreaks.com/topic/75235-cookies-locking-up-the-website/#findComment-380510 Share on other sites More sharing options...
SCook Posted October 29, 2007 Author Share Posted October 29, 2007 Well, I was able to fix it by doing the following. My index.php included a file called supporter.php. It was in this file I had the logging code. Now, when I moved this code from the support.php into the index.php under the support.php require, it seemed to work. My guess is there was some kind of conflict happening. Quote Link to comment https://forums.phpfreaks.com/topic/75235-cookies-locking-up-the-website/#findComment-380583 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.