Is there any option to set time for automatically logout or expire session if no user activity is monitored (say 10 minutes)? If the user forget to logout and keeps signed in will cause issues, because the others can access data.
Does OpenERP have the feature to sign out remotely?
I found solution by modifying code in web/http.py
I updated following with code in the function
def session_context(request, session_store, session_lock, sid):
for key, value in request.session.items(): if not isinstance(value, session.OpenERPSession): continue if getattr(value, '_suicide', False) or ( #not value._uid #and not value.jsonp_requests # FIXME do not use a fixed value and value._creation_time + (10 * 60) < time.time()): _logger.debug('remove session %s', key) removed_sessions.add(key) del request.session[key] else: value._creation_time = time.time()
It expires session automatically in 10 minute if user keeps browser idle.
it seems there is no session timeout since openerp v6.1, see :
but it seems there is a solution, see :
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/21/13, 10:43 AM|
|Seen: 15094 times|
|Last updated: 3/27/15, 6:36 PM|