Author: igorz Date: 2008-02-20 07:12:17 -0500 (Wed, 20 Feb 2008) New Revision: 96241
Modified: branches/mainsoft/gh2.2/mcs/class/System.Web.Extensions/System.Web.UI/ScriptManager.cs Log: set user is authenticated state in client Modified: branches/mainsoft/gh2.2/mcs/class/System.Web.Extensions/System.Web.UI/ScriptManager.cs =================================================================== --- branches/mainsoft/gh2.2/mcs/class/System.Web.Extensions/System.Web.UI/ScriptManager.cs 2008-02-20 11:47:21 UTC (rev 96240) +++ branches/mainsoft/gh2.2/mcs/class/System.Web.Extensions/System.Web.UI/ScriptManager.cs 2008-02-20 12:12:17 UTC (rev 96241) @@ -523,8 +523,11 @@ sb.AppendLine ("Sys.Services.ProfileService.set_path('" + profileServicePath + "');"); ScriptingAuthenticationServiceSection authenticationService = (ScriptingAuthenticationServiceSection) WebConfigurationManager.GetSection ("system.web.extensions/scripting/webServices/authenticationService"); - if (authenticationService.Enabled) + if (authenticationService.Enabled) { sb.AppendLine ("Sys.Services._AuthenticationService.DefaultWebServicePath = '" + ResolveClientUrl ("~/Authentication_JSON_AppService.axd") + "';"); + if (Page.User.Identity.IsAuthenticated) + sb.AppendLine ("Sys.Services.AuthenticationService._setAuthenticated(true);"); + } string authenticationServicePath = GetAuthenticationServicePath (); if (!String.IsNullOrEmpty (authenticationServicePath)) sb.AppendLine ("Sys.Services.AuthenticationService.set_path('" + authenticationServicePath + "');"); _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches