<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">I have had a problem like this before where the session files were being stored in a directory unavailable to PHP. You might try setting the directory path in php.ini and/or checking the permissions on the directory being used.<br><br>Appropo dev stuff. Does the Drupal installer check the session directory? Several other CMS installers like Joomla do this.<br><div> </div><div> <div><font face="Arial" size="2">Carl Mc Dade<br>____________________________<br>Web Developer<br><br></font></div><div><font face="Arial" size="2"><br> </font></div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Rob Thorne <rob@torenware.com><br>To:
development@drupal.org<br>Sent: Monday, February 19, 2007 8:30:12 AM<br>Subject: [development] Weird session behavior on submit block form<br><br><div>I'm debugging a weird issue with a Drupal 5.1 install. The bug <br>presents like this:<br><br> 1. Log in as an admin user.<br> 2. Go to admin/build/block<br> 3. Select a disabled block for adding it to some region (say, right<br> side bar) and hit "submit".<br> 4. The user will be immediately logged out, and will now see the<br> admin/build/block page as forbidden.<br><br>This problem is very specific to the server it's running on; I can take <br>the same files and database, download them to a test host, and I will <br>*not* see this problem.<br><br>I've added a bunch of error_log() statements to the install on the host <br>with the weird behavior, and you see
something like this in the log:<br><br> {{I log in here....}}<br> [19-Feb-2007 01:49:36] Cookie is d5b8a937d722318d971b1930406d744a<br> [19-Feb-2007 01:49:36] Calling session read for key<br> d5b8a937d722318d971b1930406d744a<br> [19-Feb-2007 01:49:36] calling prepare for id user_login<br> [19-Feb-2007 01:49:36] returned from prepare for user_login<br> [19-Feb-2007 01:49:36] entering validate for user_login<br> [19-Feb-2007 01:49:36] returning from validate for user_login<br> [19-Feb-2007 01:49:36] entering submit for user_login<br> [19-Feb-2007 01:49:36] leaving submit for
user_login<br> [19-Feb-2007 01:49:36] Calling session write for key<br> 71db2c27b1ff52aae4a0ac7ce8ba183a and val<br> tAJ44N_LlrbmNDZHcLue2FXede9BKRdCIQyBobLPanifZv7HurbKNgbJDHW23sYm<br><br> {{I go to en/admin/build/block}}<br> [19-Feb-2007 01:49:36] Cookie is 71db2c27b1ff52aae4a0ac7ce8ba183a<br> [19-Feb-2007 01:49:36] Calling session read for key<br> 71db2c27b1ff52aae4a0ac7ce8ba183a<br> [19-Feb-2007 01:49:37] calling prepare for id search_theme_form<br> [19-Feb-2007 01:49:37] returned from prepare for search_theme_form<br> [19-Feb-2007 01:49:37] Calling session write for key<br>
71db2c27b1ff52aae4a0ac7ce8ba183a and val<br> tAJ44N_LlrbmNDZHcLue2FXede9BKRdCIQyBobLPanifZv7HurbKNgbJDHW23sYm<br> [19-Feb-2007 01:50:26] Cookie is 71db2c27b1ff52aae4a0ac7ce8ba183a<br> [19-Feb-2007 01:50:26] Calling session read for key<br> 71db2c27b1ff52aae4a0ac7ce8ba183a<br> [19-Feb-2007 01:50:26] admin display<br> [19-Feb-2007 01:50:26] admin form exit<br> [19-Feb-2007 01:50:26] calling prepare for id block_admin_display<br> [19-Feb-2007 01:50:27] returned from prepare for block_admin_display<br> [19-Feb-2007 01:50:27] calling prepare for id search_theme_form<br> [19-Feb-2007 01:50:27] returned from prepare for
search_theme_form<br> [19-Feb-2007 01:50:28] Calling session write for key<br> 71db2c27b1ff52aae4a0ac7ce8ba183a and val<br> tAJ44N_LlrbmNDZHcLue2FXede9BKRdCIQyBobLPanifZv7HurbKNgbJDHW23sYm<br><br> {{I try to select some block to add to the right side, and hit<br> submit}}<br> [19-Feb-2007 01:51:14] Cookie is<br> [19-Feb-2007 01:51:14] Calling session read for key<br> babc55f2b27b3c224414d840650a8abe<br> [19-Feb-2007 01:51:14] calling prepare for id search_theme_form<br> [19-Feb-2007 01:51:14] returned from prepare for search_theme_form<br> [19-Feb-2007 01:51:14] Calling session write for
key<br> babc55f2b27b3c224414d840650a8abe and val<br> tAJ44N_LlrbmNDZHcLue2FXede9BKRdCIQyBobLPanifZv7HurbKNgbJDHW23sYm <br><br>Any ideas as to what might be "zeroing out" the session cookie?<br><br>Thanks,<br>Rob<br><br>Rob Thorne<br>Torenware Networks<br></div></div><br></div></div><br>
<hr size=1><a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Food fight?</a> Enjoy some healthy debate<br>in the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367">Yahoo! Answers Food & Drink Q&A.</a></body></html>