4
Answers

session value is undefined in javascript

Khargesh Rajput

Khargesh Rajput

10y
1.5k
1
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)