Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login form not working when deployed
Message
From
02/02/2009 12:33:42
Tegron Tegron
Platinum Technologies
Ohio, United States
 
 
To
30/01/2009 14:13:55
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01378518
Message ID:
01378796
Views:
11
I implemented testing for the mmUserSecurity_RedirectionUrl and it works flawlessly in development. When I login and logout again, it is redirecting to the correct page. The problem still is when I deployed it this morning to the server I still get the message that I am logged in, but it doesn't redirect anywhere.

This is frustrating since it works fine in developer mode, and I am trying to push Mere Mortals as a standard platform. It looks as if I may have to choose another form of security, since MM's security seems kind of hokey in test server mode. It is obvious to me that it is Mere Mortals, because it looks as if it is a MessageDisplay.aspx page from Mere Mortals that is displaying. So I don't think it is our server environment's configuration

In my HookUserAuthenticated method I have the following code:

if (Session["mmUserSecurity_RedirectionUrl"] == null)
{
Session["mmUserSecurity_RedirectionUrl"] = "default.aspx";
}

So it should always go to the default.aspx page if there are any problems. In my default.aspx page load is the following:

//Retrieve Default WebConfig Settings
this.defaultHomePage = ConfigurationSettings.AppSettings["DefaultHomePage"];
this.defaultTimeout = Convert.ToInt32(ConfigurationSettings.AppSettings["DefaultTimeout"]);

if (Page.Request.QueryString["Mode"] != null)
{
string Mode = this.Page.Request.QueryString["Mode"].ToString().Trim();

if (Mode == "Logout")
{
mmBaseUserLogin.Logout();
Response.Redirect("UserLogin.aspx");
}
else if (Mode == "Refresh")
{
this.UpdateDemographics();

Response.Redirect(this.defaultHomePage);
}
}
else
{
Response.Redirect(this.defaultHomePage.Trim());
}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform