re:[color=blue]
> Strangely there is no problem with small values up to about 30 minutes![/color]
That's not strange at all, if the maximum session
timeout value is 1440 minutes, or 24 hours,
as explained in my last message.
Anything higher than that will throw an error.
Sorry for not remembering that figure earlier.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================
"jensen bredal" <jensen.bredal@yahoo.dk> wrote in message
news:%23ohOXIqRFHA.3560@TK2MSFTNGP14.phx.gbl...[color=blue]
> Strangely there is no problem with small values up to about 30 minutes!
>
> i tried 1 , 2 , 15 .....30. No timeout or what so ever.
>
>
>
> "Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
> news:OUGSazpRFHA.3420@TK2MSFTNGP14.phx.gbl...[color=green]
>> I'd suggest you test with smaller values,
>> so that you can run a number of tests
>> to check whether it runs OK or not.
>>
>> Try setting timeout to 1 and refresh to 2.
>> That will allow you to test faster.
>>
>> Then, depending on the results, you can increment.
>>
>> If I recall correctly, the maximum session
>> timeout value is 1440 minutes, or 24 hours.
>>
>> Anything higher than that will throw an error.
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>>
http://asp.net.do/foros/
>> Foros de ASP.NET en Espaņol
>> Ven, y hablemos de ASP.NET...
>> ======================
>>
>> "jensen bredal" <jensen.bredal@yahoo.dk> wrote in message
>> news:%23HVPicpRFHA.1172@TK2MSFTNGP12.phx.gbl...[color=darkred]
>>> No i'm not using out of process session.
>>>
>>>
>>>
>>> "Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
>>> news:OREji5oRFHA.3740@TK2MSFTNGP10.phx.gbl...
>>>> Are you using out-of-process session state managemenet ?
>>>> ( State Server or SQL Server ? )
>>>>
>>>> If you are, Session_OnEnd might not get called.
>>>>
>>>> Session_OnEnd only gets called if using InProc
>>>> ( in-process ) session state management.
>>>>
>>>> With SQL Server, there's a way to clean up
>>>> the expired sessions by running a SQL job.
>>>>
>>>>
>>>>
>>>> Juan T. Llibre
>>>> ASP.NET MVP
>>>>
http://asp.net.do/foros/
>>>> Foros de ASP.NET en Espaņol
>>>> Ven, y hablemos de ASP.NET...
>>>> ======================
>>>>
>>>> "jensen bredal" <jensen.bredal@yahoo.dk> wrote in message
>>>> news:unCNVrnRFHA.3944@TK2MSFTNGP10.phx.gbl...
>>>>> in my case i want to do a refresh every hour (<meta
>>>>> http-equiv="refresh" content="3600">).so i set timeout=61. But this
>>>>> fails unexpectedely.
>>>>> Why?
>>>>>
>>>>>
>>>>>
>>>>> can i have session tiemout=20 when
>>>>> "Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
>>>>> news:e0h56mnRFHA.2252@TK2MSFTNGP15.phx.gbl...
>>>>>> The refresh time is immaterial.
>>>>>>
>>>>>> If you have your session timeout set to 20 minutes,
>>>>>> and have a meta refresh, in all your pages, set to 19 minutes,
>>>>>> you could have your sessions continually refreshed, without the
>>>>>> need to accumulate RAM resources over 120 minutes.
>>>>>>
>>>>>> As long as a user has a page at your site open, the sessions
>>>>>> would be automatically extended for another 20 minutes.
>>>>>>
>>>>>> If they close all pages at your site, i.e., if they go away
>>>>>> permanently, then the sessions would expire 20 minutes
>>>>>> after the last page open was refreshed.
>>>>>>
>>>>>> There's really no need to have large session timeout values.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Juan T. Llibre
>>>>>> ASP.NET MVP
>>>>>>
http://asp.net.do/foros/
>>>>>> Foros de ASP.NET en Espaņol
>>>>>> Ven, y hablemos de ASP.NET...
>>>>>> ======================
>>>>>>
>>>>>> "jensen bredal" <jensen.bredal@yahoo.dk> wrote in message
>>>>>> news:e%23QinenRFHA.1348@TK2MSFTNGP15.phx.gbl...
>>>>>>> But then how do i avoid my session to timeout still keeping the
>>>>>>> refresh
>>>>>>> time to 1 hour (3600 seconds)?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
>>>>>>> news:%23TqqXbnRFHA.1476@TK2MSFTNGP09.phx.gbl...
>>>>>>>> Actually, it makes a lot of sense that, if you have
>>>>>>>> timeout= 61 in <sessionState, that the sessions
>>>>>>>> would expire in approximately 3600 seconds.
>>>>>>>>
>>>>>>>> Remember that the timeout value is expressed in minutes.
>>>>>>>>
>>>>>>>> If you need a higher expiration time for your sessions,
>>>>>>>> set timeout= in <sessionState to 120, if that's what you need.
>>>>>>>>
>>>>>>>> If you do, the sessions will expire in 7200 seconds.
>>>>>>>>
>>>>>>>> Take note that the larger the session expiration time,
>>>>>>>> the more memory consumption and that, at some point,
>>>>>>>> you might wind up with a recycled application due to
>>>>>>>> lack of sufficient RAM, and all your sessions will expire anyway.
>>>>>>>>
>>>>>>>> You will have to experiment and look for a trade-off between
>>>>>>>> configured session expiration time and application recycling time.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Juan T. Llibre
>>>>>>>> ASP.NET MVP
>>>>>>>>
http://asp.net.do/foros/
>>>>>>>> Foros de ASP.NET en Espaņol
>>>>>>>> Ven, y hablemos de ASP.NET...
>>>>>>>> ======================
>>>>>>>>
>>>>>>>> "jensen bredal" <jensen.bredal@yahoo.dk> wrote in message
>>>>>>>> news:uTXeF8mRFHA.1500@TK2MSFTNGP09.phx.gbl...
>>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>> i'm struggling with a somehow badly understood session scenario.
>>>>>>>>> I provide acces to my pages based on form authentication using
>>>>>>>>> Session cookies.
>>>>>>>>>
>>>>>>>>> Som of my pages are supposed to be running continuously and
>>>>>>>>> refreshing once an hour.
>>>>>>>>> I there set timeout= 61 in <sessionState section and on my
>>>>>>>>> page it says
>>>>>>>>> <meta http-equiv="refresh" content="3600">.
>>>>>>>>> I also set timeout=120 in the <forms section of web.config to make
>>>>>>>>> sure
>>>>>>>>> the cookie does not expire before the session has been renewed.
>>>>>>>>>
>>>>>>>>> But anyway i'm getting the temeout every 3600 seconds.
>>>>>>>>> Can someone explain this?
>>>>>>>>>
>>>>>>>>> Many thanks in advance.
>>>>>>>>>
>>>>>>>>> JB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>[/color]
>>
>>[/color]
>
>[/color]