OpenERP WEB Client Set Idle active time

Source: Internet
Author: User

When using OpenERP on the Web client side, the default cookie validity time is the browser's current job window, so that if you don't close the browser, no matter how long it takes, the current connection is valid. There is a security problem, and if you forget to log out of OpenERP and leave your seat, someone else can continue to work with your permission.

By doing some debugging on the system, you may have the following steps to set a valid time for inactivity.

1. Locate the/addons/web/common/http.py file for editing

2. In class root can find the following syntax, is used to set the front end of the session, the red number is I add, for 10 seconds, you can change as needed:

If hasattr (response, ' Set_cookie '):
Response.set_cookie (Self.session_cookie, session.sid,10)
3. After the modification, the front end as long as re-login. The system will no longer respond to any queries, additions, modifications, deletions, or other operations when idle for more than the specified time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.