window.onpageshow = function(){ var token = gg.core.cookie.getValue("token"); console.log(token); if(token == ""||token == null){ window.location = 'login.html'; return; }};