Khargesh Rajput

Khargesh Rajput

  • NA
  • 5.6k
  • 602.9k

session value is undefined in javascript

Nov 28 2014 5:46 AM
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)