Ask a Question related to ASP.NET General, Design and Development.
-
Kian Goh #1
Setting Forms Authentication...
Hi there,
I am trying to use an entry level security for my resources website. I
followed the procedures in the MS published Self-Paced Training Kit,
everything seems working as expected. However, I found that the
authentication cookie never expires.
I thought the default timeout is 30 minutes. Please tell me if I miss any
step...
Thanks a lot,
Kian
<authentication mode="Forms">
<forms loginUrl="ResourcesLogon.aspx">
<credentials passwordFormat="Clear">
<user name="kk" password="dd"/>
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" /> <!--Deny all unauthenticated users-->
</authorization>
Kian Goh Guest
-
Accessing htm files without authentication (forms authentication)
I have application with forms authentication. All works fine. When user opens .aspx file gets login form, login and then get the .aspx page. But... -
ASP.Net Forms authentication with basic authentication popup
Relatively new to ASP.Net but have a strange problem. My site uses forms authentication for a large administration section however after the user... -
Forms authentication then redirection to a secure web with NT authentication?
Hi, I want to allow access to particular secured intranet web sites. These intranet are stored in sharepoint (2003 version) Actually I've... -
Authentication ticket, cookieless, forms authentication?
Hi. I want to use Forms Authentication, cookieless. The issue is setting the Authentication Ticket without using cookies (!) That is, the... -
Forms authentication with Windows authentication
Hi, I have an ASP.NET web site that uses IIS Basic Authentication and accesses an OLAP Server at various stages. The OLAP Server authentication... -
David Wier #2
Re: Setting Forms Authentication...
Two things - You would need to set the timeout:
<authentication mode="Forms">
<forms name=".YourAppCookieName"
loginUrl="login.aspx"
protection="All"
timeout="60" '<--------here - Number of minutes until authentication
cookie expires.
path="/"
/>
</authentication>
Also - in your login page, when you have the redirection statement - if you
have:
FormsAuthentication.RedirectFromLoginPage(txtUID.t ext, True) '<---- if you
set this to 'True", then it sets a permanent cookie, with an expiration date
about 50 years from it's creation date.
David Wier
[url]http://aspnet101.com[/url]
[url]http://aspexpress.com[/url]
"Kian Goh" <kiangoh2700544@hotmail.com> wrote in message
news:eFHBRsbXDHA.3268@tk2msftngp13.phx.gbl...> Hi there,
>
> I am trying to use an entry level security for my resources website. I
> followed the procedures in the MS published Self-Paced Training Kit,
> everything seems working as expected. However, I found that the
> authentication cookie never expires.
>
> I thought the default timeout is 30 minutes. Please tell me if I miss any
> step...
>
> Thanks a lot,
> Kian
>
>
> <authentication mode="Forms">
> <forms loginUrl="ResourcesLogon.aspx">
> <credentials passwordFormat="Clear">
> <user name="kk" password="dd"/>
> </credentials>
> </forms>
> </authentication>
> <authorization>
> <deny users="?" /> <!--Deny all unauthenticated users-->
> </authorization>
>
>
David Wier Guest
-
Kian Goh #3
Re: Setting Forms Authentication...
Thanks a lot, David.
It is working now.
"David Wier" <dwier@nospamASPNet101.com> wrote in message
news:%23nZIkDcXDHA.1744@TK2MSFTNGP12.phx.gbl...you> Two things - You would need to set the timeout:
> <authentication mode="Forms">
> <forms name=".YourAppCookieName"
> loginUrl="login.aspx"
> protection="All"
> timeout="60" '<--------here - Number of minutes until authentication
> cookie expires.
> path="/"
> />
> </authentication>
>
> Also - in your login page, when you have the redirection statement - ifdate> have:
> FormsAuthentication.RedirectFromLoginPage(txtUID.t ext, True) '<---- if you
> set this to 'True", then it sets a permanent cookie, with an expirationany> about 50 years from it's creation date.
>
>
> David Wier
> [url]http://aspnet101.com[/url]
> [url]http://aspexpress.com[/url]
>
>
> "Kian Goh" <kiangoh2700544@hotmail.com> wrote in message
> news:eFHBRsbXDHA.3268@tk2msftngp13.phx.gbl...> > Hi there,
> >
> > I am trying to use an entry level security for my resources website. I
> > followed the procedures in the MS published Self-Paced Training Kit,
> > everything seems working as expected. However, I found that the
> > authentication cookie never expires.
> >
> > I thought the default timeout is 30 minutes. Please tell me if I miss>> > step...
> >
> > Thanks a lot,
> > Kian
> >
> >
> > <authentication mode="Forms">
> > <forms loginUrl="ResourcesLogon.aspx">
> > <credentials passwordFormat="Clear">
> > <user name="kk" password="dd"/>
> > </credentials>
> > </forms>
> > </authentication>
> > <authorization>
> > <deny users="?" /> <!--Deny all unauthenticated users-->
> > </authorization>
> >
> >
>
Kian Goh Guest



Reply With Quote

