I was getting CSRF verification failed. Request aborted
error on admin page so I created my own login page and things started working fine and I was able to login and do stuff. But yesterday I created another application where same login code and logic is being used. In starting it was working ok but later on it also started throwing errors. I analysed the response header and found that in response header and source code of web page, same csrf token value is set but in browser cookies different value is set.
I have posted a stackoverflow question for same issue. http://stackoverflow.com/questions/41787263/different-value-of-csrf-token-at-different-places-csrf-verification-failing-in