browse: forums | FAQ
Connecting Tech Pros Worldwide

Hey there! Do you need ASP.NET help?

Get answers from our community of ASP.NET experts on BYTES! It's free.

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

enahar
Guest
 
Posts: n/a
#1: Nov 19 '05
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







sara
Guest
 
Posts: n/a
#2: Nov 19 '05

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


Hi enahar
chang ur timeout to be more tham 20 min
Hope this help:)

"enahar" wrote:
[color=blue]
> 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
>
>
>
>
>[/color]
Nikander & Margriet Bruggeman
Guest
 
Posts: n/a
#3: Nov 19 '05

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


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:
[color=blue]
> 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
>
>
>
>
>[/color]
Scott Allen
Guest
 
Posts: n/a
#4: Nov 19 '05

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


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" <enahar@hotmail.com>
wrote:
[color=blue]
>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
>
>
>[/color]

Ekta Agarwal
Guest
 
Posts: n/a
#5: Nov 19 '05

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


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!
Patrick Olurotimi Ige
Guest
 
Posts: n/a
#6: Nov 19 '05

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


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!
Scott Allen
Guest
 
Posts: n/a
#7: Nov 19 '05

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


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" <enahar@hotmail.com>
wrote:
[color=blue]
>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
>
>
>[/color]

enahar
Guest
 
Posts: n/a
#8: Nov 19 '05

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


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" <ige@iprimus.com.au> wrote in message
news:evliypVFFHA.4052@TK2MSFTNGP14.phx.gbl...[color=blue]
> 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![/color]


Patrick Olurotimi Ige
Guest
 
Posts: n/a
#9: Nov 19 '05

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


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!
Closed Thread