My user's are loosing their work when trying to submit a form after a timeout.

I did some poking around and discovered that hook_init() is being called before hook_nodeapi when a form is submitted. Therein lies the rub. You're content submission detection is in hook_nodeapi() while your user_logout() call is in hook_init().

Comments

jvandervort’s picture

Status: Active » Closed (works as designed)

Yes, that is the way it works currently. Automated logout will log you out if you wait too long before using the site. There isn't a switch which says something like, "Don't log them out if they are looking at an edit screen." A current solution might be a longer timeout or a role which excludes auto logout.