Form redirect causing logout?
Hi,
I'm creating a couple custom 'modules' which really are nothing more than some forms. I've made a number of forms, on one, when the user submits information (doesn't matter who or permissions), that user is automatically logged out. The behavior I want is for them to go back to form.
In the form submit, I literally have a database update, and then the following:
drupal_set_message(t('Message successfully queued. Refresh the messages page to follow status.'));
$form_state['redirect'] = 'message/view';I have tried this on different browsers and different machines. Anyone have any idea what I might be doing to cause this behavior?
Oh, I should note that my other forms, coded basically the same way don't cause this behavior, and the path is valid, if a user is logged in.
Another note -- all data is submitted correctly, so its not a DB crash or anything.

Solution Found
Okay, after posting this I decided to try removing the code that would process form data and actually submit anything. By doing this the form redirect actually worked, of course the form actually did nothing. So, long story short I started to rebuild the database update part. I had a foreach loop to process an array. And, I labeled it the keys and values as KeyE as ValueE. Once I changed that to something more random KeyEMS as ValueEMS, it worked fine. I've not done any research into this, but I'm gonna guess that ValueE is somehow reserved. ??? If not, mighty weird behavior, but at least its fixed.