you must load all the session files, unpickle them and see if there is an auth.user key in it.
On Monday, October 22, 2012 12:55:12 PM UTC+2, Saurabh Kumar wrote: > > By external python script, I mean a python script run using following > command: > > python web2py.py -S app_name -M -R applications/app_name/private/script.py > > I have to check if the user with a given user_id is 'logged in' inside > this script. > --