But then how auth.user is updated?

>All auth does on successful login is:

>from gluon.storage import Storage
>session.auth=Storage()
>session.auth.user = db(db.auth_user.id==logged_in_user_id).select
().first()
>session.auth.user_id = session.auth.user.id
>session.auth.last_visit = request.now

>set session.auth=None on logout.

>
> >>> So, how can Icreatea new session programmatically (like the login
> >>> page does)?
>
> >> --
> >> Alejandro Fanjul Fdez.
> >> [email protected]
>
> --
> Alejandro Fanjul Fdez.
> [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to