I want to set the location of my logout function.
I have my own logout function:
def logout():
if 'url_suffix' in request.cookies:
url_suffix = request.cookies['url_suffix'].value
response.cookies['url_suffix'] = ""
response.cookies['url_suffix']['expires'] = -1000
response.cookies['url_suffix']['path'] = '/'
auth.logout(next=URL("default", "login", url_suffix))
else:
auth.logout(next=URL("default", "login"))
return dict()
if i set:
auth.settings.expiration = 10
After 10 seconds i want user to be logged out with my own function.
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.