how to write session out code in javascript

Posted by Klbaiju under JavaScript on 7/30/2012 | Points: 10 | Views : 1466 | Status : [Member] | Replies : 3
Hi,
my application contains automatic session time out checking and display alert message.
following is the code.
<script type="text/javascript" language="javascript">

$(function () {
var timeout = 5000;
$(document).bind("idle.idleTimer", function () {
// function you want to fire when the user goes idle
$.timeoutDialog({ timeout: 0.25, countdown: 15, logout_redirect_url: '../Default.aspx', restart_on_yes: true });
});
$(document).bind("active.idleTimer", function () {
// function you want to fire when the user becomes active again
});
$.idleTimer(timeout);
});

</script>
the popup message contains 2 buttons ask whether to continue or sign out.
this is the code for signout
$.timeoutDialog({ timeout: 0.25, countdown: 15, logout_redirect_url: '../Default.aspx', restart_on_yes: true });
this only goes to default page.I want to write Session["value"]=null in this code.
i have tried this
$.timeoutDialog({ timeout: 0.25, countdown: 15, logout_redirect_url: '../Default.aspx', Session["value"]=null,restart_on_yes: true });
but not working.
how to solve this i already strucked here.

Regards
Baiju




Responses

Posted by: CGN007 on: 7/30/2012 [Member] Silver | Points: 25

Up
0
Down
Please refer thishttp://forums.asp.net/t/1823218.aspx/1

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 7/30/2012 [Member] Silver | Points: 25

Up
0
Down
By using jquery
http://technotiger87.blogspot.in/2009/11/set-session-using-jquery.htm l

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 7/31/2012 [Member] Silver | Points: 25

Up
0
Down
Mark as answer if it helps...,That motivates...!!!

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response