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. > >> alex.fan...@gmail.comwww.mhproject.org > > -- > Alejandro Fanjul Fdez. > alex.fan...@gmail.comwww.mhproject.org -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.