You can get the session value in html page using ajax call i will give one example try like this you will get good result
In Default.aspx page write like this under button click event am storing session value
protected void btnSession_Click(object sender, EventArgs e)
{
Session["Getvalue"] = "Test html";
Response.Redirect("~/HTMLPage1.htm");
}
and i wrote one Web Method in Default.aspx page like
[WebMethod]
public static string GetSessionValue()
{
return HttpContext.Current.Session["Getvalue"].ToString();
}
Next in html page write an ajax method in document.ready method
$(document).ready(function () {
$.ajax({
type: "POST",
url: "../Default.aspx/GetSessionValue",
data: "",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
$('#sessionvalue').html(msg.d);
},
async: false,
error: function (msg) {
AlertDialog("Failed to load session value.");
}
});
});
for displaying session am using Htmlpage in that am taking div tag
Here in html page you will get session value