Re: FormsAuthentication - Changes in .Net Framework 1.1 ?
From: Cowboy \(Gregory A. Beamer\) (NoSpamMgbworld_at_comcast.netRemuvThis)
Date: 06/26/03
- Next message: basin: "Re: SQL Integrated Security in .NET1.1"
- Previous message: Cowboy \(Gregory A. Beamer\): "Re: SQL Integrated Security in .NET1.1"
- In reply to: Pete: "FormsAuthentication - Changes in .Net Framework 1.1 ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 26 Jun 2003 13:11:59 -0500
I don't have time to think through what you are doing, but here is a method
that might solve.
1. Set up an auth page in each project and use forms auth on a project by
project basis
2. Set the cookie name the same across all apps that need single sign on
What we have found is the cookie name keys the forms auth in a single domain
(xxx.com). As cookies are keyed to a domain, this will only work for cookies
under a single domain name, ie you cannot authenticate mycompany.com and
myothercompany.com even if on the same server. Of course, you cannot easily
do what you are doing either across domains.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA Author: ADO.NET and XML: ASP.NET on the Edge **************************************************************************** **** Think Outside the Box! **************************************************************************** **** "Pete" <schaarp@msn.com> wrote in message news:e94Sdj9ODHA.3192@TK2MSFTNGP10.phx.gbl... > Hello, > i've created a ASP.net-Project with FormsAuthenication. > The LoginUrl in web.config points to Loginpage on my separate Login-Project. > Using .net Framework 1.0, the Login-Mechanism an the redirect works fine. > -If i visit the ASP.net Project i get redirected to my Login-Page > -After successful Login a cookie ist set and i get redirected. > > After installing .NET-Framework 1.1 i do not get redirected from the > Login-Page. > > > What is different between in the .NET Framework 1.0 and 1.1 in this case? > > Code-Example: > Project with FormsAuthentication > <authentication mode="Forms"> > <forms name=".nyho" loginUrl="http://localhost/genlogin/ui/login.aspx" > protection="All" timeout="60" /> > > </authentication> > > Login-Project: > ....... > FormsAuthenticationTicket oAuthTkt; > oAuthTkt = new FormsAuthenticationTicket(1, edtLogin.Text.ToString(), > DateTime.Now, DateTime.Now.AddDays(8), chkPersistent.Checked, sTktUserdata); > sFormsCookie = FormsAuthentication.Encrypt(oAuthTkt); > oCookie = FormsAuthentication.GetAuthCookie(edtLogin.Text, > chkPersistent.Checked); > oCookie.Value = sFormsCookie; > objContext.Response.Cookies.Add(oCookie); > objContext.Response.Redirect(FormsAuthentication.GetRedirectUrl(edtLogin.Tex > t, chkPersistent.Checked)); > ........ > > Thanks for any help > > Pete > >
- Next message: basin: "Re: SQL Integrated Security in .NET1.1"
- Previous message: Cowboy \(Gregory A. Beamer\): "Re: SQL Integrated Security in .NET1.1"
- In reply to: Pete: "FormsAuthentication - Changes in .Net Framework 1.1 ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|