pretty easy just after db definition example :
db = DAL('postgres://postgres:Nour@localhost/asterisk')
add this line :
session.connect(request, response, db, masterapp=None)
refresh and look inside database for a table called :
web2py_session_YourAppNameHereOn Tue, Aug 21, 2012 at 6:44 PM, Yarin <[email protected]> wrote: > Khali- I've never seen a session table in web2py before. Neither basic app > nor wizard-generated nor welcome app have one- where have you seen this? > > > On Tuesday, August 21, 2012 1:31:04 PM UTC-4, Khalil KHAMLICHI wrote: > >> I believe if you store sessions in db (which is very easy and out of the >> box if you opt for it), you can delete entry of user from it to disconnect >> him instantly, without affecting other users. >> this table has a name like : web2py_session_**YourApplicationName >> >> Regards >> >> On Tue, Aug 21, 2012 at 6:22 PM, Yarin <[email protected]> wrote: >> >>> Is it possible to clear a session for a single user? >>> >>> Currently, if we need to block user access, we must delete the user >>> record or set registration key = "blocked", and then clear session for the >>> entire site. Is there a better way? >>> >>> -- >>> >>> >>> >>> >> >> -- > > > > --

