05-29-06 10:22 PM
Hi,
sorry if I wasn't clear enough in my previous post.
I was not talking about web.config settings but about IIS metabase settings
and ACLs.
Please verify if there are any 401 reponses in the IIS log.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"hlorofils" <hlorofils@gmail.com> wrote in message
news:1148630851.444781.35720@y43g2000cwc.googlegroups.com...
> Hi, Stefan,
>
> Here are relevant details from web.config:
>
> <authentication mode="Forms">
> <forms name="LVPAUTHTOKEN" cookieless="UseCookies"
> loginUrl="/LV/Login.aspx" path="/" protection="All" timeout="30"/>
> </authentication>
>
> <authorization>
> <allow users="*"/>
> </authorization>
>
> <sessionState mode="InProc"
> stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
> source=127.0.0.1;Trusted_Connection=yes" cookieless="false"
> timeout="30"/>
>
>
> and Login.aspx:
>
> protected void Page_Load(object sender, EventArgs e)
> {
> HttpCookieCollection cookieCols = new HttpCookieCollection();
> cookieCols = Request.Cookies;
> Request.Cookies.Remove("CMSAUTHTOKEN");
> }
>
> private void authenticate()
> {
> try
> {
> CmsAuthenticationTicket Ticket =
> CmsFormsAuthentication. AuthenticateAsUser(WebConfigurationManag
er.AppSetti
ngs["MCMSDomainPref"]
> + LoginName.Text, Password.Text);
> if (Ticket != null)
> {
> CmsFormsAuthentication.SetAuthCookie(Ticket, true,
> false);
>
> Response.Redirect(WebConfigurationManager.AppSettings["AppPath"] +
> "/LV/WebLinks");
> }
> else
> {
> Msg.Text = "Invalid username/password";
> }
> }
> catch (Exception ex)
> {
> Msg.Text = ex.Message;
> }
> }
>
> In authenticate() I'm also retrieving our custom User data object and
> putting it into Session, but basically that's it.
>
[ Post a follow-up to this message ]
|