import os
from gluon import recfile
session_filename = recfile.generate(session_id)
full_filename = os.path.join(request.folder, 'sessions/', session_filename)
that's how I get the filename from a session id. Keep in mind that a user
can have multiple sessions (logged in from different devices,
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
T
Upon login, store response.session_id or response.session_filename in an
extra field in db.auth_user. That will make it easier to retrieve the
session of any given user. If you want to update a session file, be sure to
lock it first.
Maybe have a look at the session code for some ideas:
https:
Please elaborate on how I can do this manually. Thanks.
On Thursday, January 7, 2016 at 7:26:15 PM UTC+5, Anthony wrote:
>
> auth.user_groups is stored in the user's session. If you (as an admin)
> make a change in the database, that will not affect the session of another
> user (which is stored
auth.user_groups is stored in the user's session. If you (as an admin) make
a change in the database, that will not affect the session of another user
(which is stored in a file). We should probably make it easier to change
content in a user's session (possibly by storing the name of the session
5 matches
Mail list logo