Sesi Check in JavaScript

var user = sessionStorage.getItem("userId")
Thanush Wijesinghe