how to write session out code in javascript

Posted by Klbaiju under JavaScript on 7/30/2012 | Points: 10 | Views : 2505 | Status : [Member] | Replies : 0
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

(No response found.)

Login to post response