Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.