Thank you, could you please post an example?

On Thursday, March 29, 2012 7:24:02 PM UTC-7, Anthony wrote:
>
> Now I need to make possible login/logout with just 
>> Javascript and Ajax snd calling web2py auth remotely.
>>
>> How to implement it so that I get the same functionality
>> with sessions, etc?
>>
>
> If you need to login with an Ajax request, try using auth.login_bare(). 
> That will require you to handle the form creation and submission logic 
> yourself. For Ajax logout, you can write your own function -- it just needs 
> to add the logout event to the db via 
> auth.log_event(auth.messages.logout_log, 
> auth.user) and then set session.auth = None (the event logging is 
> optional). Sessions should work as usual.
>
> Anthony
>

Reply via email to