user1767962
user1767962

Reputation: 2109

DatabaseError: current transaction is aborted, commands ignored until end of transaction block - in incognite mode but no error in normal

i am getting this error in the incognite mode of chrome : DatabaseError: current transaction is aborted, commands ignored until end of transaction block

But, in the normal mode, i am not getting this error .

I am getting this error at request.session.save from some middleware .

Upgraded to 1.4.2 from 1.3 recently.

Regarding session backends, I set it as database backend. When I changed to cache backend, it is not giving error .

Upvotes: 0

Views: 677

Answers (1)

Павел Тявин
Павел Тявин

Reputation: 2659

You see in incognito mode, chrome automatically delete cookie files, while django session mechanism store session id and csrf token in cookie.

You can't use standart django session mechanism with deleting cookie. But there is some methods to implement session without cookie.

Upvotes: 1

Related Questions