473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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:

<authentication mode="Forms">
<forms loginUrl="Security/Login.aspx" protection="All" timeout="20" path="/"
/>

</authentication>

Thanks


Nov 19 '05 #1
8 1512
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:

<authentication mode="Forms">
<forms loginUrl="Security/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.Redirect 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:

<authentication mode="Forms">
<forms loginUrl="Security/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:

<authentication mode="Forms">
<forms loginUrl="Security/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:

<authentication mode="Forms">
<forms loginUrl="Security/Login.aspx" protection="All" timeout="20" path="/"
/>

</authentication>

Thanks


Nov 19 '05 #7
Hi
If I use
Response.AppendHeader("Refresh",Convert.ToString(( Session.Timeout*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.com.au> wrote in message
news:ev**************@TK2MSFTNGP14.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
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...
1
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...
2
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...
3
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...
0
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"...
2
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...
8
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...
15
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.