Session Regeneration
<p>I have some confusion with session handling in PHP. I know how to regenerate new session ID in PHP using <code>session_regenerate_id();</code>, but I don't understand why and when I should regenerate a new session ID.</p>

<p>I have been googling for some time without avail. No one explains why I need to regenerate a new session ID.</p>

<p>Can someone explain why and when I would need to regenerate a new session ID?</p>
