Click here to Skip to main content
15,892,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionKeeping the session alive Pin
Talal Sultan8-Jan-09 20:30
Talal Sultan8-Jan-09 20:30 
AnswerRe: Keeping the session alive Pin
Aman Bhullar8-Jan-09 20:48
Aman Bhullar8-Jan-09 20:48 
QuestionRe: Keeping the session alive Pin
Talal Sultan8-Jan-09 21:21
Talal Sultan8-Jan-09 21:21 
AnswerRe: Keeping the session alive Pin
Sundar_R8-Jan-09 20:52
Sundar_R8-Jan-09 20:52 
GeneralRe: Keeping the session alive Pin
Talal Sultan8-Jan-09 21:22
Talal Sultan8-Jan-09 21:22 
GeneralRe: Keeping the session alive Pin
Sundar_R8-Jan-09 21:59
Sundar_R8-Jan-09 21:59 
GeneralRe: Keeping the session alive Pin
Talal Sultan8-Jan-09 22:38
Talal Sultan8-Jan-09 22:38 
AnswerRe: Keeping the session alive Pin
NeverHeardOfMe8-Jan-09 22:18
NeverHeardOfMe8-Jan-09 22:18 
A trick I use to keep the session alive on a particular page is as follows:

Add the following to the body of your page (or add it via RegisterClientScriptBlock in Page_Load in code behind):

<script type='text/javascript'>
function Reconnect(){
var img = new Image(1,1);
img.src = '../common/reconnect.aspx';
}
window.setInterval('Reconnect()',1170000);
// 1170000 = (20 * 60000) - 30000 = 30s short of 20min, the default timeout
</script>

having saved the follwing single line as reconnect.aspx
<%@ OutputCache Location="None" VaryByParam="None" %>

Works for me... the function Reconnect() gets called every 19.5 minutes, effectively pinging the server by calling nrecconect.aspx as the src of a 1x1px image...

Hope this can help you..
GeneralRe: Keeping the session alive Pin
Talal Sultan8-Jan-09 22:41
Talal Sultan8-Jan-09 22:41 
QuestionGenerating Dynamic views dynamically at run time in asp.net mvc Pin
ramachandrareddy8-Jan-09 20:21
ramachandrareddy8-Jan-09 20:21 
Questionerrormessage from two separate validators appearing in the same place Pin
livez8-Jan-09 20:17
livez8-Jan-09 20:17 
AnswerRe: errormessage from two separate validators appearing in the same place Pin
Talal Sultan8-Jan-09 20:34
Talal Sultan8-Jan-09 20:34 
AnswerRe: errormessage from two separate validators appearing in the same place Pin
Abhijit Jana8-Jan-09 20:35
professionalAbhijit Jana8-Jan-09 20:35 
GeneralRe: errormessage from two separate validators appearing in the same place Pin
livez8-Jan-09 20:36
livez8-Jan-09 20:36 
Questionhow to reduce loading time in website? Pin
sugunavathysubramanian8-Jan-09 19:45
sugunavathysubramanian8-Jan-09 19:45 
AnswerRe: how to reduce loading time in website? Pin
Abhijit Jana8-Jan-09 19:59
professionalAbhijit Jana8-Jan-09 19:59 
Questionpayemnt gateway Pin
deepika18-Jan-09 19:37
deepika18-Jan-09 19:37 
AnswerRe: payemnt gateway Pin
Abhijit Jana8-Jan-09 20:06
professionalAbhijit Jana8-Jan-09 20:06 
QuestionException of type 'System.OutOfMemoryException' was thrown. Pin
www.Developerof.NET8-Jan-09 19:28
www.Developerof.NET8-Jan-09 19:28 
AnswerRe: Exception of type 'System.OutOfMemoryException' was thrown. Pin
Abhijit Jana8-Jan-09 19:44
professionalAbhijit Jana8-Jan-09 19:44 
GeneralRe: Exception of type 'System.OutOfMemoryException' was thrown. Pin
Member 260050931-Jan-10 22:55
Member 260050931-Jan-10 22:55 
QuestionAsp.net how to implement payment gateway i want credit card validation Pin
deepika18-Jan-09 19:22
deepika18-Jan-09 19:22 
AnswerRe: Asp.net how to implement payment gateway i want credit card validation Pin
Abhijit Jana8-Jan-09 20:08
professionalAbhijit Jana8-Jan-09 20:08 
Questionhow we can fatch java script function from dll in asp.net Pin
vikramsc8-Jan-09 19:21
vikramsc8-Jan-09 19:21 
AnswerRe: how we can fatch java script function from dll in asp.net Pin
Abhijit Jana8-Jan-09 20:42
professionalAbhijit Jana8-Jan-09 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.