Cannot login in AspDotNetStoreFront 9.5, continually redirects back to login page

August 9, 2015 at 3:42 PMMadestro

I came across a situation where I could not login to AspDotNetStoreFront. It kept redirecting me back to the login page with no apparent error message, which seemed to indicate that the login was successful, yet it wasn't doing anything.

The issue turned out to be the time zone difference between web server and database server. I was running my copy locally and the time at the server was running a few hours behind, which causes the application to think you have "timed out".

To work around this, there is an application setting named "SessionTimeoutInMinutes" that you can change to a value greater than the time zone difference, in order to keep the session active.

I had trouble locating this setting. Eventually I figured out it used to live in a configuration file apparently, but it now has been moved to table "AppConfig" in the database. Change the "ConfigValue" column value and it should allow you to log in. 

Make sure to restart the application afterwards to force reloading of the settings.

Enjoy!

Posted in: AspDotNetStoreFront

Tags:

How to reset AspDotNetStoreFront's Super Admin account

May 12, 2015 at 10:56 AMMadestro

I was working on a project that involved ASPDotNetStoreFront's MultiStore product and for one reason or another, my account was locked and I could not get into the administration interface.

Sadly, my account was the only Super Admin account.

Fortunately, there is a procedure that can be followed on the backend in order to reset the super admin account:

  1. Open the database with a tool that allows you to run SQL scripts, such as SQL Management Studio.
  2. Run the following query:
    • UPDATE [Customer]
           SET [Password] = 'YOUR NEW PASSWORD',
                 [SaltKey] = -1,
                 [LockedUntil] = DateAdd(mi, -1, GetDate()),
                 [BadLoginCount] = 0,
                 [PwdChangeRequired] = 0,
                 [PwdChanged] = GetDate()
           WHERE [Email] = 'SUPER ADMIN EMAIL ADDRESS'
  3. Restart the site by recycling the application or modifying the web.config file.

And that's all there is to it. Go back to your admin console and login normally.

Posted in: AspDotNetStoreFront

Tags: