Проверка сеанса в JavaScript
var user = sessionStorage.getItem("userId")
Thanush Wijesinghe
var user = sessionStorage.getItem("userId")