This command is deprecated as of ADOdb V5.21 and will be removed in ADOdb V6
bool adodb_session_regenerate_id()
Since PHP V4.21, this function has simply been a wrapper for the PHP function session_regenerate_id() .
The method adodb_session_regenerate_id()
will dynamically change the current session id with a newly generated one and update database. This currently only works with cookies. Useful to improve security by reducing the risk of session-hijacking.
include 'adodb/adodb-session2.php'; ADODB_Session::config($driver,$host,$user,$pass,$database); session_start(); /* * Approximately every 10 page loads, reset cookie for safety. * This is extremely simplistic example, better * to regenerate only when the user logs in or changes * user privilege levels. */ if ((rand()%10) == 0) adodb_session_regenerate_id();