473,586 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

timing out the asp.net web application when not in use for 15 minutes

Hi,

How to timing out the asp.net web application when not in use for 15 minutes
although I am using the code in web.config file as below:

<authenticati on mode="Forms">
<forms loginUrl="Secur ity/Login.aspx" protection="All " timeout="20" path="/"
/>

</authentication>

Thanks


Nov 19 '05 #1
8 1523
Hi enahar
chang ur timeout to be more tham 20 min
Hope this help:)

"enahar" wrote:
Hi,

How to timing out the asp.net web application when not in use for 15 minutes
although I am using the code in web.config file as below:

<authenticati on mode="Forms">
<forms loginUrl="Secur ity/Login.aspx" protection="All " timeout="20" path="/"
/>

</authentication>

Thanks


Nov 19 '05 #2
Why not change the web.config settings to 15 minutes? Otherwise, you could of
course save a timestamp in a session variable after login, create a base web
page and make every web page inherit from it. Add a method to the base web
page which checks if the timestamp is older then 15 minutes. If it is, call
Session.Abandon (); and do a Response.Redire ct to your login form. Hth.

Kind regards,
Nikander & Margriet Bruggeman

"enahar" wrote:
Hi,

How to timing out the asp.net web application when not in use for 15 minutes
although I am using the code in web.config file as below:

<authenticati on mode="Forms">
<forms loginUrl="Secur ity/Login.aspx" protection="All " timeout="20" path="/"
/>

</authentication>

Thanks


Nov 19 '05 #3
Hi enahar:

Let me try to understand your question:

Do you want to have the application shutdown after 15 minutes of
inactivity?

or

Do you want to logoff a user after no activity from that one user for
15 minutes?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 17 Feb 2005 15:53:18 +1100, "enahar" <en****@hotmail .com>
wrote:
Hi,

How to timing out the asp.net web application when not in use for 15 minutes
although I am using the code in web.config file as below:

<authenticatio n mode="Forms">
<forms loginUrl="Secur ity/Login.aspx" protection="All " timeout="20" path="/"
/>

</authentication>

Thanks


Nov 19 '05 #4
Hi scott,

I want to logoff a user after no activity from that one user for
15 minutes?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #5
Hi enahar,
Try looking through this :-
http://www.extremeexperts.com/Net/Ar...AfterSessionTi
meout.aspx
Hope it helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #6
Enhar:

Have you tried setting the timeout attribute to 15? This will expire
the cookie after (roughly) 15 minutes of inactivity. Without the
cookie the user will no login be authenticated.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 17 Feb 2005 15:53:18 +1100, "enahar" <en****@hotmail .com>
wrote:
Hi,

How to timing out the asp.net web application when not in use for 15 minutes
although I am using the code in web.config file as below:

<authenticatio n mode="Forms">
<forms loginUrl="Secur ity/Login.aspx" protection="All " timeout="20" path="/"
/>

</authentication>

Thanks


Nov 19 '05 #7
Hi
If I use
Response.Append Header("Refresh ",Convert.ToStr ing((Session.Ti meout*60)+10)&" ;URL=Login.aspx ")
in every page of the Page_Load then it will refresh the page irrespective of
whether activity is there or not.I want to refresh only when there is no
activity or not in use .

Thanks

"Patrick Olurotimi Ige" <ig*@iprimus.co m.au> wrote in message
news:ev******** ******@TK2MSFTN GP14.phx.gbl...
Hi enahar,
Try looking through this :-
http://www.extremeexperts.com/Net/Ar...AfterSessionTi
meout.aspx
Hope it helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #8
Enahar..
U can write a Jscript for that or try googling for one.
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1308
by: Gary | last post by:
I am having a problem executing long running queries from an ASP application which connects to SQL Server 2000. Basically, I have batches of queries that are run using ADO in a loop written in VBScript. This works pretty well until the execution time of a single query starts to exceed some threshold, which I am trying to narrow down. I can...
1
1568
by: jj | last post by:
I've got one database server that works fine when transferring large amounts of data, but a new one that has been setup seems to want to timeout or drop the connection after a period of time. I've tried to compare the variables and they seem to be the same. The versions of MySQL are slightly different with the good one being 3.23.41 and the...
2
1460
by: whatanut | last post by:
Hi, we have a website built using .Net Framework 2 and Visual Studio 2005 Beta 2. It has a session timeout setting of 20 minutes of inactivity, set in the web.config. But some of our users are timing out sooner than 20 minutes (5 minutes even). Any idea why this may be happening to some but not others and what we can do to fix it? thanks,.
3
1688
by: gregory_may | last post by:
I have an application where I am using a System Thread to capture the screen & Broadcast it to clients. Its "working", but the timing on the background thread gets wildly erratic at times. Some times, its right away, some times after 10 seconds. I have included the setup of the process and the outline of the Call Back Method. As posted,...
0
2043
by: JJ | last post by:
I have an asp.net 1.1 app I wrote using the Mobile Controls. I changed the timeout attribute in sessionState in web.config from the default of 20 to 1440: <sessionState mode="InProc" cookieless="false" timeout="1440" />
2
1589
by: suspended | last post by:
My website session is timing out frequently. I have modified the web.config file such that <sessionState timeout="60"/> and also at the Page_load, I have assigned Session.Timeout = 60; but my session expires in about 5 minutes. What is going on and how to fix it?
8
8113
by: Stefan Barlow | last post by:
On IIS 6, I've disabled idle timeouts and any app pool recycling other than the 29 hour timed recycle. I've disabled both on the app pool itself and on all app pools at the server level. I've restarted IIS as well. After 20 minutes of inactivity, sites are still being shut down. Going by the logs, there is a time stamp if the idle time...
15
2565
by: Jay | last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send text messages to many, many employees via system.timer at a 5 second interval. Basically, I look in a SQL table (queue) to determine who needs to receive the text message then send the message to the address. Only problem is, the employee may receive up to 4 of the...
4
3156
by: Nebulus | last post by:
We've got a website that's designed in classic ASP. While it's a good product, the original design was badly done, and I've inherited a monster. At some point last week, users began calling in and complaining that their sessions were timing out after minutes instead of the 120 minute session timeout that's set in the global.asa Now, at...
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3835
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.