All I need now is a clothes hanger and ducttape and I have a real patch job going here. So, by using these settings, Drupal will use the URL, and Moodle will use cookies. If you turn off cookies completely, Moodle will fail. But, it does work.ĮDIT: I added the ini_set('e_cookies', 0) and changed both the PHP.INI to 1 because we also run Moodle with the Moodle integration module for Drupal. Yes, your urls will look like crap in search engines as well. Once you wipe out all your cookies, and go with this, it will all work fine. In other words, move the PHPSESSID to the URL. Thanks in advance for any help getting this sorted. I've not been able to find much searching these forums except a handful of people with similar problems, but no real fixes that seem to work for me. Ini_set('session.cache_limiter', 'none') However, by the time includes/session.inc is run, $user->uid is reported as 0 in sess_write(). When I log in, the $user->uid in modules/user.module is correctly reported as uid=1 in the user_login() function. I have put some var_dump()s and printf()s to see what queries are being run and what the values of $user->uid are. The same if the existing cookie corresponds to an session for uid=1. If I delete this cookie and then attempt to login, I am always successful. When I go to the login page without a cookie, an 'anonymous' PHPSESSID cookie is set. My PHPSESSID cookie is reset with a new 'anonymous' session id when I attempt to log in. When I return to the login page, even with a PHPSESSID cookie that matches an existing sid for uid=1 in the sessions table, I am unable to login. If I logout, my PHPSESSID cookie remains. If I change my local cookie PHPSESSID to match the sid from the sessions table, I am successfully logged in as admin. One corresponding to uid 1, and one corresponding to uid 0. At this point, I have two sid's in the sessions table. If I try to log in as admin with the correct password, the watchdog table reports I have successfully logged in, but the PHPSESSID returned after the login event is the same as the sid for the anonymous user. I see that uid looks like an anonymous user that is created when I create my admin user (uid 1). This id matches the sid for uid 0 in the sessions table. When I first come to the login page, a PHPSESSID cookie is set. I am having troubling with session cookies. I have a successful install on a local network server. Hello, I am new to Drupal and I'm having trouble figuring out my log in problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |