Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
9724 Lượt xem

I need the user session should auto logout after one hour. For this I am changing the value in http.py file as below. But it is not working.

def session_gc(session_store):
if random.random() < 0.001:
# we keep session one week
last_week = time.time() - 60*60
for fname in os.listdir(session_store.path):
path = os.path.join(session_store.path, fname)
try:
if os.path.getmtime(path) < last_week:
os.unlink(path)
except OSError:
pass

I had refered this solution from this below URL. \https://www.odoo.com/forum/help-1/question/configure-session-timeout-for-odoo-12-145583

It seems not working for me. Someone Please guide me on this.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

This may help you 

https://apps.odoo.com/apps/modules/10.0/auth_session_timeout/

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 22
1908
1
thg 7 19
3395
1
thg 5 25
1231
2
thg 12 23
14825
0
thg 10 23
33