you will need to know the names of the session variables you want to maintain.
after the @session_start(); line, add code to store the sessions in application variables, for example, if the session is named UserID:
$UserName = $_SESSION['UserName'];
Then reset the session after the @session_regenerate_id(); line:
$_SESSION['UserName'] = $UserName;