django-auto-logout icon indicating copy to clipboard operation
django-auto-logout copied to clipboard

hello there the "'REDIRECT_TO_LOGIN_IMMEDIATELY': True," dont working

Open EymenAkan opened this issue 1 year ago • 2 comments

its working if i press refresh whit mouse but it wont refresh and send user to login page automaticly and i write it inisde of two diffrent project and its still lacking about that problem here is my config about AUTO_LOGOUT

from datetime import timedelta

AUTO_LOGOUT = { 'IDLE_TIME': timedelta(minutes=1), 'SESSION_TIME': timedelta(minutes=2), 'REDIRECT_TO':'login', 'MESSAGE': 'The session has expired. Please login again to continue.', 'REDIRECT_TO_LOGIN_IMMEDIATELY': True, }

i add it into middleware i add it into context processor i have {{ redirect_to_login_immediately }} in my page but its still causing a stir and i cant find a way for solving this problem

is it possible to have error because i use jinja style templates like {%extend%} and {%include%} in a few page like in my layout i have {%include%} and in index (for example) {%extends%} is it possible to create a problem because of this connections thanks for the answer have a great day

EymenAkan avatar Oct 13 '24 13:10 EymenAkan

Sorry for late. Health issues. Can you give me tests - i'll fix it.

bugov avatar Oct 30 '24 08:10 bugov

sorry for late but i dont have any test im newbie so i dont know how it make this error

EymenAkan avatar Jan 29 '25 13:01 EymenAkan