jQuery(window).load(function() {
//Set the login session
sessionStorage.setItem('status','loggedIn')
});
//Check the login session
if (sessionStorage.getItem('status') != null))
//redirect to page
console.log('You are logged in');
}
else{
//show validation message
console.log('You are not logged in');
}