To get rid of the checkbox, set auth.settings.remember_me_form=False. To set the long login, I think it just looks for the existence of request.vars.remember (which would be there if the checkbox were included in the form and checked). So, you should be able to force the long login by adding a 'remember' variable to request.vars. Something like:
auth.settings.login_onvalidation = lambda f: request.vars.update(remember=True) Note, you can adjust the length of the long login via auth.settings.long_expiration. Anthony On Thursday, December 1, 2011 5:52:46 PM UTC-5, Constantine Vasil wrote: > > I want to set the option Remember me (for 30 days) > to take effect by default whether or not the user checked > the checkbox when login. And if possible to hide the checkbox. > > How to do that? >

