mmedi005
asked on
If I use Session_End in Global.asax, how can I give a warning, but if the user clicks ok in a message box, the Session is restored?
If I use Session_End in Global.asax, how can I give a warning in a messaeg box?
If the user clicks ok in a message box, the Session is restored and Session time is restarted?
Is this possible?
If the user clicks ok in a message box, the Session is restored and Session time is restarted?
Is this possible?
ASKER
Lets say the user has been warned, if they click ok, does that restart the Session?
If No, what would I have to do so that the Session Timeout is restarted?
If No, what would I have to do so that the Session Timeout is restarted?
>>If No, what would I have to do so that the Session Timeout is restarted?
you will need to refresh the page for the session to be updated on the server ... you can refresh by redirecting to the same page .. again using javascript like
document.location.href = 'samepage.aspx'
Rejo
you will need to refresh the page for the session to be updated on the server ... you can refresh by redirecting to the same page .. again using javascript like
document.location.href = 'samepage.aspx'
Rejo
ASKER
will information inside the text boxes be cleared on the forms refresh?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<script>
var sessiontimeout = 20; \\default timeout for web application .. change this if you have changed the default
sessiontimeout = (sessionTimeout-1)*60*1000
setTimeout('sessionWarning
function sessionWarning()
{
alert('session will timeout in 1 minute');
}
</script>