Click here to Skip to main content
15,887,214 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: randomly generate a number every X minutes (php) Pin
Yustme17-Dec-09 6:15
Yustme17-Dec-09 6:15 
GeneralRe: randomly generate a number every X minutes (php) Pin
Richard MacCutchan18-Dec-09 8:47
mveRichard MacCutchan18-Dec-09 8:47 
GeneralRe: randomly generate a number every X minutes (php) [modified] Pin
plecco22-Dec-09 9:09
plecco22-Dec-09 9:09 
GeneralRe: randomly generate a number every X minutes (php) Pin
Richard MacCutchan22-Dec-09 10:19
mveRichard MacCutchan22-Dec-09 10:19 
GeneralRe: randomly generate a number every X minutes (php) [modified] Pin
plecco22-Dec-09 10:22
plecco22-Dec-09 10:22 
GeneralOff topic Pin
Richard MacCutchan22-Dec-09 11:13
mveRichard MacCutchan22-Dec-09 11:13 
AnswerRe: randomly generate a number every X minutes (php) Pin
Terry Valladon9-Feb-10 8:33
Terry Valladon9-Feb-10 8:33 
QuestionTimeout Alert Issue....Javascript Function with ASP.net application Pin
PDTUM15-Dec-09 9:08
PDTUM15-Dec-09 9:08 
Good Morning,

I am trying to write a simple time out javascript to accompany an ASP.net application. The default time out for the application is 20 minutes. Currently, when it does time out, it reverts to an ugly error page. I would rather that it either logs the user off or simply sends him to the login or index page. Although I have found some very seemingly simple samples, I cannot get anything to work. I do not know if it makes a difference, but I am using an internal (<Iframe>) to rotate pages within a main page. I do not why that should make a difference since the session value is based on the session and not the page. Either way, I have tried posting the script on both the Main page that displays the frame and on the inserted frame page as well. It makes no difference. These are the two scripts that I have tried:

Style 1 is supposed to give the option to take the user to a new page if it is not responded to:

function warnuser()
{
if (confirm("There has been no activity for some time.\nClick 'OK' if you " +
"wish to continue your session,\nor click 'Cancel' to log out.\nFor your " +
"security if you are unable to respond to this message\nwithin 2 minutes you " +
"will be logged out automatically."))
{
//post the page to itself
document.location.href = "Main.aspx"
}
else
{
document.location.href = "Index.aspx"
}
}

Style 2 is simpler and simply posts a warning:

function SessionAlert()
{
alert("Your Session will time out in 19 minutes");
}
setTimeOut("SessionAlert", 1 * 60 * 1000);

I tried setting the second one for just a minute just to see if it would work. It doesn't. Following is the setting that is deployed on the web.config page in the ASP.net applcation (and it does time out in 20 minutes):

<sessionState mode="InProc" cookieless="false" timeout="20" />

Any assistance is greatly appreciated....Pat
AnswerRe: Timeout Alert Issue....Javascript Function with ASP.net application Pin
John Bracey15-Dec-09 9:37
John Bracey15-Dec-09 9:37 
QuestionHow to pass username of window authentication to web application. Pin
sabby200615-Dec-09 2:52
sabby200615-Dec-09 2:52 
QuestionHow to pass username of window authentication to web application. Pin
sabby200615-Dec-09 2:50
sabby200615-Dec-09 2:50 
AnswerRe: How to pass username of window authentication to web application. Pin
Saša Dragičević15-Dec-09 3:27
Saša Dragičević15-Dec-09 3:27 
AnswerRe: How to pass username of window authentication to web application. Pin
The Man from U.N.C.L.E.15-Dec-09 10:19
The Man from U.N.C.L.E.15-Dec-09 10:19 
Questioncan we create our own home Page in YahooHome Page. Pin
shiva.kore14-Dec-09 18:54
shiva.kore14-Dec-09 18:54 
AnswerRe: can we create our own home Page in YahooHome Page. Pin
Ashfield14-Dec-09 21:42
Ashfield14-Dec-09 21:42 
QuestionMS SharePoint & Dynamics Pin
Karina.R14-Dec-09 0:46
Karina.R14-Dec-09 0:46 
AnswerRe: MS SharePoint & Dynamics Pin
Richard MacCutchan14-Dec-09 23:06
mveRichard MacCutchan14-Dec-09 23:06 
QuestionHTML (aspx, ascx, html pages) Blacked Out Pin
jchandramouli13-Dec-09 21:29
jchandramouli13-Dec-09 21:29 
AnswerRe: HTML (aspx, ascx, html pages) Blacked Out [modified] Pin
plecco22-Dec-09 9:12
plecco22-Dec-09 9:12 
QuestionHow to private User On download pdf files Pin
en.Mahdi13-Dec-09 18:49
en.Mahdi13-Dec-09 18:49 
AnswerRe: How to private User On download pdf files [modified] Pin
plecco22-Dec-09 9:14
plecco22-Dec-09 9:14 
AnswerRe: How to private User On download pdf files Pin
marita724-Jan-10 5:38
marita724-Jan-10 5:38 
QuestionSending Request and Reading Response from Webservice using XML API Pin
shaina223112-Dec-09 1:18
shaina223112-Dec-09 1:18 
AnswerRe: Sending Request and Reading Response from Webservice using XML API Pin
shaina223112-Dec-09 1:19
shaina223112-Dec-09 1:19 
Questionajax synchronous request, page refresh and the error Pin
Jayapal Chandran12-Dec-09 0:37
Jayapal Chandran12-Dec-09 0:37 

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.