0

I am trying to use the jQuery plugin 'timeout-dialog' in my ASP.Net app to caution the user that his/her session is about to expire. This plugin is at: http://rigoneri.github.com/timeout-dialog.js/. It says that one of the parameters called 'keep-alive-url' is as below:

keep_alive_url -The url that will perform a GET request to keep the session alive. This GET expects a 'OK' plain HTTP response.

How would I create a page in ASP.Net or simple html that would return a plain 'OK' in its http response?

Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
Sunil
  • 20,653
  • 28
  • 112
  • 197

2 Answers2

1

Try:

Response.StatusCode = 200;

in ASP.NET code behind.

Mike Cole
  • 14,474
  • 28
  • 114
  • 194
1

This stumped me for awhile.

Some reason it needs to be a 404 Not Found

<cfheader statusCode="404" statusText="Not Found">
Mike Henke
  • 864
  • 1
  • 8
  • 22