how to change the default URL to which logging in sends you?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
HaterTot
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Sat Sep 25, 2010 6:56 pm

how to change the default URL to which logging in sends you?

Post by HaterTot » Tue Oct 12, 2010 11:43 pm

I'm strongly leaning towards creating my business's landing page be Default.aspx right inside my AbleCommerce solution. I would create my ablecommerce store page as store.aspx, and you'd get there from a link on the landing page.

The only problem I see with this at the moment is being redirected to Default.aspx upon logging in. I see in the LoginDialog control that upon logging in, "FormsAuthentication.RedirectFromLoginPage(UserName.Text, false);" is called. This function resides in a binary so I can't directly edit This function's summary says that it "Redirects an authenticated user back to the originally requested URL or the default URL."

Is there any place I can set the default URL as 'store.aspx'? I'd like to use the original LoginDialog control if possible as to preserve the rest of RedirectFromLoginPage()'s functionality.

thanks

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: how to change the default URL to which logging in sends you?

Post by mazhar » Wed Oct 13, 2010 6:18 am

You need to adjust one entry in web.config to accomplish this. Edit your website/web.config file and locate following statement

Code: Select all

<forms timeout="90" slidingExpiration="true" name="AC7.ASPXAUTH" />
and update it as

Code: Select all

<forms timeout="90" slidingExpiration="true" name="AC7.ASPXAUTH" defaultUrl="Store.aspx" />
This should do the trick and after login redirection will go to store.aspx instead of default page.

HaterTot
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Sat Sep 25, 2010 6:56 pm

Re: how to change the default URL to which logging in sends you?

Post by HaterTot » Wed Oct 13, 2010 11:31 am

lovely! thank you!

Post Reply