This command is deprecated as of ADOdb V5.21 and will be removed in ADOdb V6 ====== adodb_session_regenerate_id====== ~~NOTOC~~ ==Syntax== bool adodb_session_regenerate_id() ===== Description ======= Since PHP V4.21, this function has simply been a wrapper for the PHP function [[http://php.net/manual/en/function.session-regenerate-id.php|session_regenerate_id()]] . ===== Session Cookie Regeneration ===== 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. =====Usage===== 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();