Get session issue-Collection of common programming errors

Try this


    function getsession(){    
        var name = "";
        alert('Session value = >' + name );
    };

OR you can try this

  // To Read
  $(function() {
  //Set the value to session
  $.session.set("userName", $("#uname").val());
  //Get the value to session
  alert($.session.get("myVar"));
  });

Originally posted 2013-11-29 06:17:42.