Page 1 of 1

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

Posted: Tue Oct 12, 2010 11:43 pm
by HaterTot
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

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

Posted: Wed Oct 13, 2010 6:18 am
by mazhar
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.

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

Posted: Wed Oct 13, 2010 11:31 am
by HaterTot
lovely! thank you!