title: Does Session ID rotation enhance security?
body: <p>(I think) I understand why session IDs should be rotated when the user logs in - this is one important step to prevent <a href="http://www.acros.si/papers/session_fixation.pdf" rel="noreferrer">session fixation</a>.</p>
  
  <p>However, is there any advantage to randomly/periodically rotating session IDs?</p>
  
  <p>This seems to only provide a false sense of security in my opinion.  Assuming session IDs are not vulnerable to brute-force guessing and you only transmit the session ID in a cookie (not as part of URLs), then an attacker will have to access your cookie (most likely by snooping on your traffic) to get your session ID.  Thus if the attacker gets one session ID, they'll probably be able to sniff the rotated session ID too - and thus randomly rotating has not enhanced security.</p>