Please show your code.

On Thursday, June 6, 2013 12:53:30 AM UTC-4, Mark Li wrote:
>
> Does anyone know why the session.auth.remember and session.auth.expiration 
> are only saved after a new page load?
>
> Currently, I am making an ajax call that sets session.auth.remember and 
> session.auth.expiration (after auth.login_bare()). If I close the browser 
> after the ajax call without a new page load, then the session.auth.remember 
> is not saved and the user is not logged in.
>
> However, if I make the ajax call, then load a new page/refresh the page, 
> and then close the browser, session.auth.remember is saved.
>
> Is there any reason why a page refresh/load does this, and why the ajax 
> call alone will not save session.auth.remember and session.auth.expiration 
> (and thus keep the user logged in)?
>

-- 

--- 
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.


Reply via email to