Şu işlemi yukarıdan silip footerda formdan bir önceki satır da uygular mısınız?
//SESSION
$_SESSION['token'] = rand(10000000, 99999999);