Changing loginUrl

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
moopa
Lieutenant (LT)
Lieutenant (LT)
Posts: 59
Joined: Tue May 13, 2008 10:11 am

Changing loginUrl

Post by moopa » Tue Aug 11, 2009 11:33 am

Hi there.

I cannot find where you set the Url for forms authentication (login.aspx) It isn't in the web.config.
I wish to change it to something else.

Can someone let me know where to find it?

Thanks in advance,

Moopa

User avatar
moopa
Lieutenant (LT)
Lieutenant (LT)
Posts: 59
Joined: Tue May 13, 2008 10:11 am

Re: Changing loginUrl

Post by moopa » Wed Aug 12, 2009 2:34 am

*polite bump*.
Can someone point me to where I configure this please?

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

Re: Changing loginUrl

Post by mazhar » Wed Aug 12, 2009 3:47 am

You need to set loginURL property. You can read more about loginURL from here
http://msdn.microsoft.com/en-us/library ... inurl.aspx

User avatar
moopa
Lieutenant (LT)
Lieutenant (LT)
Posts: 59
Joined: Tue May 13, 2008 10:11 am

Re: Changing loginUrl

Post by moopa » Wed Aug 12, 2009 3:51 am

mazhar wrote:You need to set loginURL property. You can read more about loginURL from here
http://msdn.microsoft.com/en-us/library ... inurl.aspx
Thanks for the reply, however my initial question is where this resides in able commerce?
Usually this would be in the web.confg

Code: Select all

<authentication mode="Forms">
  <forms loginUrl="member_login.aspx"
    defaultUrl="index.aspx" />
</authentication>
But all we have in Ablecommerce is:-

Code: Select all

<authentication mode="Forms">
			<forms timeout="90" slidingExpiration="true" name="AC7.ASPXAUTH"/>
		</authentication>
Any ideas?

User avatar
moopa
Lieutenant (LT)
Lieutenant (LT)
Posts: 59
Joined: Tue May 13, 2008 10:11 am

Re: Changing loginUrl

Post by moopa » Wed Aug 12, 2009 3:53 am

Hi again.

I realised that Login.aspx must be a default by Microsoft and that I needed to add the value like so:-

Code: Select all

	<authentication mode="Forms">
			<forms timeout="90" slidingExpiration="true" name="AC7.ASPXAUTH" loginUrl="~/Login/"/>
		</authentication>
Thanks for jogging my memory :)

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

Re: Changing loginUrl

Post by mazhar » Wed Aug 12, 2009 3:58 am

If ASP.NET application found that forms authentication is enabled and there is no loginURL is specified then it considers login.aspx in current directory as default. That's why there is no loginURL entry fount. You can modify web.config for this change for example

Code: Select all

<authentication mode="Forms">
         <forms timeout="90" slidingExpiration="true" name="AC7.ASPXAUTH" loginUrl="myloginpage.aspx" />
      </authentication>

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

Re: Changing loginUrl

Post by mazhar » Wed Aug 12, 2009 3:59 am

Seems I was a little bit late, any how sounds good that you figured it out.

User avatar
moopa
Lieutenant (LT)
Lieutenant (LT)
Posts: 59
Joined: Tue May 13, 2008 10:11 am

Re: Changing loginUrl

Post by moopa » Wed Aug 12, 2009 4:18 am

mazhar wrote:Seems I was a little bit late, any how sounds good that you figured it out.
No probs. Thanks for getting back to me :)

Post Reply