need to change Redirect login

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
frosty
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Jul 24, 2008 3:22 am

need to change Redirect login

Post by frosty » Fri Oct 17, 2008 5:31 am

we have created our own login page. It's address is "/login/" ie not "/login.aspx"

I cannot find a redirect setting in the web.config. Ideally i'd like to do something like

<authentication mode="Forms">
<forms name="Able"
loginUrl="~/login/default.aspx"
timeout="15"
protection="All"
cookieless="UseCookies"
path="/"/>
</authentication>

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

Re: need to change Redirect login

Post by mazhar » Fri Oct 17, 2008 10:07 am

You can do this job as below

Code: Select all

<authentication mode="Forms">
			<forms timeout="90" slidingExpiration="true" name="AC7.ASPXAUTH" loginUrl="~/login/Default.aspx" />
		</authentication>
Also after this change you need to change the login page URL of the login icon in the header and change the following entry in the App_Data/ablecommerce.config file

Code: Select all

<add path="Login.aspx" />
to

Code: Select all

<add path="login/Default.aspx" />

frosty
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Jul 24, 2008 3:22 am

Re: need to change Redirect login

Post by frosty » Mon Oct 27, 2008 3:58 am

thanks, all working

Post Reply