4
Answers

session value is undefined in javascript

I am getting session value is undefined .
 window.onload = function () {


var mySessionVar = '<%#HttpContext.Current.Session("lnUserID")%>';

alert(mySessionVar.value);

}
 
 
how to get session value using javascript
Answers (4)