Session Fixation
This entry was posted on Wednesday, November 26th, 2003 at 11:21 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Sérgio Carvalho says:
Bottom line. When logging in, destroy the previous session. For PHP:
<?php
session_id(md5(rand()));
session_start();
// Rest of login script
?>
Andre Restivo says:
In fact it’s even easier than that:
bool session_regenerate_id ( void )
Anonymous says:
Except that session_regenerate_id (PHP 4 >= 4.3.2)