I don't think a test app is that simple to create. It needs a db, auth_user table, user entry with memberships, login form ... because the issue only occurs if you're logged in.
It is true that the pickled sessions are different after iterating the user_groups as confirmed by Anthony. Therefor session._unchanged should also be false for you, please check the return value after iterating the user_groups. If this is also false for you then the session will be written - response.session_id is set (because logged in), self._forget is not set and self._unchanged returns false. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.