콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
9995 화면

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.

아바타
취소
베스트 답변

This may help you 

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

아바타
취소
관련 게시물 답글 화면 활동
0
11월 22
1908
1
7월 19
3588
1
5월 25
1535
2
12월 23
15339
0
10월 23
33