Jump to content

[SOLVED] Cookie? Problem


scottjcampbell

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/144118-solved-cookie-problem/
Share on other sites

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);

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.