Ask a Question related to ASP.NET Security, Design and Development.
-
jester #1
RedirectFromLoginPage persistent cookie expiration
Passing true for the second parameter of RedirectFromLoginPage creates a
persistent cookie. When does this cookie expire?
jester Guest
-
Persistent Shared Object not being persistent
hi my fms app maintains a persistent shared object to keep track of daily highscores, however whenever the app is reloaded or restarted all the... -
Cookie Expiration Date
:confused; Can anyone help me figure out how to change the date that my coldfusion server sets for expiration on client housed cookies? I have run... -
Cookies set one time, I delete cookie, cookie is never set again!
I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes,... -
Expiration time of a cookie
What is the longest expiration time of a cookie? Thanks ________________________________________________________________ The best thing to hit... -
Cookie Expiration
Is there a way to write a cookie to the browser, then redirect.... If I do the following, the cookie is not written. Dim cookie As New... -
John Paul. A #2
RE: RedirectFromLoginPage persistent cookie expiration
Hi jester,
Please check your config file. If everything goes right, please check the
security settings for the dll.
Rgds,
John Paul. A
"jester" wrote:
>
> Passing true for the second parameter of RedirectFromLoginPage creates a
> persistent cookie. When does this cookie expire?
>John Paul. A Guest
-
John Paul. A #3
RE: RedirectFromLoginPage persistent cookie expiration
Hi jester,
Please ignore my previous reply, becoz my reply to DPAPI has come here.
Regarding the RedirectFromLoginPage - persistent cookie, you can control the
expiration date, it is also a good practice too..
Here how you can do?
If persistentCookie And expirationDays > 0 Then
' Get a reference to the cookie just created.
Dim cookie As HttpCookie = Response.Cookies _
(FormsAuthentication.FormsCookieName)
' Set its expiration date.
cookie.Expires = Now.AddDays(expirationDays)
' Ensure the cookie can travel only over https.
'cookie.Secure = True
End If
Rgds,
John Paul. A
"jester" wrote:
>
> Passing true for the second parameter of RedirectFromLoginPage creates a
> persistent cookie. When does this cookie expire?
>John Paul. A Guest
-
jester #4
RE: RedirectFromLoginPage persistent cookie expiration
But what would be the default cookie expiration if I don't set it explicitly?
"John Paul. A" wrote:
> Hi jester,
> Please ignore my previous reply, becoz my reply to DPAPI has come here.
>
> Regarding the RedirectFromLoginPage - persistent cookie, you can control the
> expiration date, it is also a good practice too..
> Here how you can do?
>
> If persistentCookie And expirationDays > 0 Then
> ' Get a reference to the cookie just created.
> Dim cookie As HttpCookie = Response.Cookies _
> (FormsAuthentication.FormsCookieName)
> ' Set its expiration date.
> cookie.Expires = Now.AddDays(expirationDays)
> ' Ensure the cookie can travel only over https.
> 'cookie.Secure = True
> End If
>
> Rgds,
> John Paul. A
>
>
> "jester" wrote:
>> >
> > Passing true for the second parameter of RedirectFromLoginPage creates a
> > persistent cookie. When does this cookie expire?
> >jester Guest
-
John Paul. A #5
RE: RedirectFromLoginPage persistent cookie expiration
Dear jester,
The default time-out limit is 20 minutes.
Please see the Microsoft documentation "Configuring ASP.NET Applications to
Use the Appropriate Session State"
[url]http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/all/deployguide/en-us/iisdg_net_mshe.asp[/url]
Sorry.. The URL is bit long...
Rgds,
John Paul. A
"jester" wrote:
>
> But what would be the default cookie expiration if I don't set it explicitly?
>
> "John Paul. A" wrote:
>> > Hi jester,
> > Please ignore my previous reply, becoz my reply to DPAPI has come here.
> >
> > Regarding the RedirectFromLoginPage - persistent cookie, you can control the
> > expiration date, it is also a good practice too..
> > Here how you can do?
> >
> > If persistentCookie And expirationDays > 0 Then
> > ' Get a reference to the cookie just created.
> > Dim cookie As HttpCookie = Response.Cookies _
> > (FormsAuthentication.FormsCookieName)
> > ' Set its expiration date.
> > cookie.Expires = Now.AddDays(expirationDays)
> > ' Ensure the cookie can travel only over https.
> > 'cookie.Secure = True
> > End If
> >
> > Rgds,
> > John Paul. A
> >
> >
> > "jester" wrote:
> >> > >
> > > Passing true for the second parameter of RedirectFromLoginPage creates a
> > > persistent cookie. When does this cookie expire?
> > >John Paul. A Guest
-
jester #6
RE: RedirectFromLoginPage persistent cookie expiration
Thanks, John Paul.
"John Paul. A" wrote:
> Dear jester,
> The default time-out limit is 20 minutes.
> Please see the Microsoft documentation "Configuring ASP.NET Applications to
> Use the Appropriate Session State"
>
> [url]http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/all/deployguide/en-us/iisdg_net_mshe.asp[/url]
>
> Sorry.. The URL is bit long...
>
> Rgds,
> John Paul. A
>
> "jester" wrote:
>> >
> > But what would be the default cookie expiration if I don't set it explicitly?
> >
> > "John Paul. A" wrote:
> >> > > Hi jester,
> > > Please ignore my previous reply, becoz my reply to DPAPI has come here.
> > >
> > > Regarding the RedirectFromLoginPage - persistent cookie, you can control the
> > > expiration date, it is also a good practice too..
> > > Here how you can do?
> > >
> > > If persistentCookie And expirationDays > 0 Then
> > > ' Get a reference to the cookie just created.
> > > Dim cookie As HttpCookie = Response.Cookies _
> > > (FormsAuthentication.FormsCookieName)
> > > ' Set its expiration date.
> > > cookie.Expires = Now.AddDays(expirationDays)
> > > ' Ensure the cookie can travel only over https.
> > > 'cookie.Secure = True
> > > End If
> > >
> > > Rgds,
> > > John Paul. A
> > >
> > >
> > > "jester" wrote:
> > >
> > > >
> > > > Passing true for the second parameter of RedirectFromLoginPage creates a
> > > > persistent cookie. When does this cookie expire?
> > > >jester Guest



Reply With Quote

