I have a brand new 5.0 install on my laptop (Windows, running Xampp).
I can't login with the initial user (which is to say, I have never been able to login). I have the right user and password, but when I click the button on the login block, the page just reloads -- no error message, just a reload as if nothing happened. Any attempt to access the admin side results in an "Access denied" error, so it's telling me I'm not logged in.
I've done some debugging. The user is being authenticated and retrieved just fine. In the "user_login_validate" function of "user.module," I can var_dump the user and see all of the properties. So Drupal is getting the user data back and authenticating.
What seems to be happening is that Drupal is not storing anything in the session.
* If I delete all session files from the session directory in PHP, and then visit my new Drupal install, no new session file gets created.
* My Drupal install does not attempt to set a cookie in my browser.
* I have added "print_r($_SESSION);" to the "index.php" file. Nothing displays.
I thought it was a problem with my PHP, so I rigged up another page that started a session and set a value. Worked perfectly -- the PHPSESSID cookie was set, the file appeared in the temp directory, and the session data would dump to the screen.
What would cause a brand-new 5.0 install to abandon session handling like this? I have re-downloaded and re-installed twice now, so it's not a matter of doing it again.
Deane
Comments
If it makes you feel any
If it makes you feel any better, I have experienced exactly the same behavior with Win XP, and I have yet to figure it out, it used to work on my XP machine, but unfortunately I don't know when it stopped working. I do most of my development on my laptop (Win 2000) or Linux, so I never really put much time into figuring out what went wrong, but I would be curious to know if this is resolved.
Ron.
related?
If you search there a a number of related threads on cookie handling, such as:
http://drupal.org/node/14939
but in particular, look in seetings.php at this (newly modified) section:
for a localhost install this may particularly be an issue.
---
Work: BioRAFT
Solved
Yes, that was it exactly. I commented that section out, and it works fine now.
Thank you.
Me too: this did the trick.
Me too: this did the trick. Thank you!
b