scottjcampbell Posted February 6, 2009 Share Posted February 6, 2009 Hi, i have recently restored my server and downloaded xampp from their website, before i did this, my website worked fine. I have tried to log on to my website, though each time i do, i get no error, and no message, just the login form again as if the user has just navigated to the page. I was wondering if this was something todo with cookies? if you can get on, please tell me: url: campbellmember.co.uk user: test password: campbe11 (NOTICE THE ONE's NOT L's) Thanks, Scott Campbell. Quote Link to comment https://forums.phpfreaks.com/topic/144118-solved-cookie-problem/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 6, 2009 Share Posted February 6, 2009 We would need to see the code to be able to help with what it is doing that might be php configuration specific, but my guess is it relies on register_globals to magically populate program variables from POST/GET/COOKIE/SESSION variables. Register_globals were turned off in php4.2 in the year 2002 and all current recommend php.ini settings have them set to off. They have been completely removed in php6. What does adding the following two lines of code immediately after your first opening <?php tag give - ini_set ("display_errors", "1"); error_reporting(E_ALL); Quote Link to comment https://forums.phpfreaks.com/topic/144118-solved-cookie-problem/#findComment-756218 Share on other sites More sharing options...
scottjcampbell Posted February 6, 2009 Author Share Posted February 6, 2009 I still have no-luck ? Quote Link to comment https://forums.phpfreaks.com/topic/144118-solved-cookie-problem/#findComment-756255 Share on other sites More sharing options...
scottjcampbell Posted February 7, 2009 Author Share Posted February 7, 2009 i have checked, and i dont think my site even requires globals to be on? Quote Link to comment https://forums.phpfreaks.com/topic/144118-solved-cookie-problem/#findComment-756934 Share on other sites More sharing options...
PFMaBiSmAd Posted February 7, 2009 Share Posted February 7, 2009 We would need to see the code to be able to help with what it is doing... Quote Link to comment https://forums.phpfreaks.com/topic/144118-solved-cookie-problem/#findComment-756941 Share on other sites More sharing options...
scottjcampbell Posted February 7, 2009 Author Share Posted February 7, 2009 Oh my god!!! i feel sooo stupid, when manually copying my tables (as windows folders from the mysql folder) i accidentally set them as read-only, this meant that when someone logged in, their user id was not set, and therefore their cookie was incorrect. Thanks for all your help. Scott Campbell. Quote Link to comment https://forums.phpfreaks.com/topic/144118-solved-cookie-problem/#findComment-756944 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.