0

I wonder if there exists a function in Django similar to that in PHP, which is session_regenerate_id(). I want to use that kind of function to rotate sessionid on each N requests in order to provide more security. In PHP I would use in the manner described by this guy in this post. I just want to implement the same thing in my Django project, but I'm new to Django and do not know if there exists such a function that could change user's session id on the fly.

Community
  • 1
  • 1
Jacobian
  • 9,082
  • 25
  • 109
  • 208

1 Answers1

1

Yes, such function exists in django - request.session.cycle_key().

catavaran
  • 42,728
  • 8
  • 88
  • 82