[HttpFoundation] fixed issue with session_regenerate_id (closes #7380)