session set in javascript code example
Example 1: set a value in session using javascript
<script type="text/javascript">
function GetUserName()
{
var username = '<%= Session["UserName"] %>';
alert(username );
}
</script>
Example 2: how to get session value using javascript
By LOVE
sessionStorage.getItem("SessionName")