Hi,i want to pass and retrieve session using jquery.following is my code
$('#btnlogin').click(function () {
//alert("test");
var uname = $('#txtuname').val();
var pword = $('#txtpword').val();
var ID = 'uname=' + uname + '&pword=' + pword;
// alert(ID);
if (uname.length > 0 && pword.length > 0) {
$.ajax({
type: "GET",
contentType: "text/html;charset=utf-8",
url: "LoginProcess.aspx",
data: ID,
success: function (data) {
if (data == "CMP") {
$('#lbltext').val('');
window.location.href = "Admin/Admin.aspx";
Session=uname
}
}
});
I want to retrieve the session in Admin.aspx.
how it is possible.
Regards
Baiju