Re: FormsAuthentication cookies timeout
From: tshad (tscheiderich_at_ftsolutions.com)
Date: 01/14/05
- Next message: Patrick.O.Ige: "Re: FormsAuthentication cookies timeout"
- Previous message: Patrick.O.Ige: "RE: FormsAuthentication cookies timeout"
- In reply to: Patrick.O.Ige: "RE: FormsAuthentication cookies timeout"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 13 Jan 2005 16:27:11 -0800
"Patrick.O.Ige" <PatrickOIge@discussions.microsoft.com> wrote in message
news:6B4AADB8-4476-43A5-8ABF-8F5E06B4C7E1@microsoft.com...
> hi tshad..
> in ur web.config the default timeout is 20mins.
> <sessionState
> mode="InProc"
> stateConnectionString="tcpip=127.0.0.1:42424"
> sqlConnectionString="data
> source=127.0.0.1;Trusted_Connection=yes"
> cookieless="false"
> timeout="20"
> />
That is what I am trying to do.
I want to use forms Authentication to control access to my pages and I am
finding that my cookies have an expiration date of 50 years from now (no
matter what I set the timeout field to - maybe this field will not help me).
I would actually like the cookie (or session cookie) for each person to
disapear when they leave the browser. But I also want to make sure that if
the browser is left on for more that some time (say 20 minutes), they have
to log on again.
I was looking on the MS site about cookies and they say that the expiration
date is pointless - it is either there or it isn't. The expiration field is
for information only.
So what good is the timeout?
Tom
> Why don't u change it to ur taste..
> Hope it helps
> Patrick
>
>
>
>
> "tshad" wrote:
>
>> I am trying to get my authentication to work and want the timeout to be
>> 30
>> minutes, but only while the browser is active. If the browser closes, I
>> want the cookie to disappear.
>>
>> Is this possible?
>>
>> The 2 web configs are set as:
>>
>> *******************************
>> <system.web>
>> <authentication mode="Forms">
>> <forms name="staffing"
>> loginUrl="/development/staffing/logon.aspx"
>> protection="All"
>> path="/" />
>> </authentication>
>> </system.web>
>> *********************************
>>
>> ***********************************
>> <configuration>
>> <system.web>
>> <authorization>
>> <deny users="?" />
>> </authorization>
>> </system.web>
>> </configuration>
>> **************************************
>>
>> My problem is during testing the cookie gets turned on and I have to wait
>> until the timeout stops.
>>
>> Is there a way I can manully delete the cookie?
>>
>> Where would it be located when the 'path="/"'?
>>
>> Thanks,
>>
>> Tom.
>>
>>
>>
- Next message: Patrick.O.Ige: "Re: FormsAuthentication cookies timeout"
- Previous message: Patrick.O.Ige: "RE: FormsAuthentication cookies timeout"
- In reply to: Patrick.O.Ige: "RE: FormsAuthentication cookies timeout"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|