Re: Django request.session persist between logins of different users.

2021-06-08 Thread Mateusz Wasielewski
Hello, Sorry that was postman problem, the old session_id was stored and when I logged by different user the old session id was still there. My mistake. Thanks for help. > On 8 Jun 2021, at 09:55, Williams Andy Inc wrote: > > Did you have your own logout function view or class view? > >

Re: Django request.session persist between logins of different users.

2021-06-08 Thread Williams Andy Inc
Did you have your own logout function view or class view? On Tue, Jun 8, 2021 at 9:17 AM Mateusz Wasielewski < mateusz.wasielewsk...@gmail.com> wrote: > Hello, > I want to implement two factor authetication in my django app. The steps > are as follows: > 1. User need to register > 2. User need t

Django request.session persist between logins of different users.

2021-06-07 Thread Mateusz Wasielewski
Hello, I want to implement two factor authetication in my django app. The steps are as follows: 1. User need to register 2. User need to login 3. As login user, user need to send a token for verification, if verification is ok, I set the variable like this request.session['token']=True. I hav