Page 1 of 1

Changing loginUrl

Posted: Tue Aug 11, 2009 11:33 am
by moopa
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

Re: Changing loginUrl

Posted: Wed Aug 12, 2009 2:34 am
by moopa
*polite bump*.
Can someone point me to where I configure this please?

Re: Changing loginUrl

Posted: Wed Aug 12, 2009 3:47 am
by mazhar
You need to set loginURL property. You can read more about loginURL from here
http://msdn.microsoft.com/en-us/library ... inurl.aspx

Re: Changing loginUrl

Posted: Wed Aug 12, 2009 3:51 am
by moopa
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?

Re: Changing loginUrl

Posted: Wed Aug 12, 2009 3:53 am
by moopa
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 :)

Re: Changing loginUrl

Posted: Wed Aug 12, 2009 3:58 am
by mazhar
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>

Re: Changing loginUrl

Posted: Wed Aug 12, 2009 3:59 am
by mazhar
Seems I was a little bit late, any how sounds good that you figured it out.

Re: Changing loginUrl

Posted: Wed Aug 12, 2009 4:18 am
by moopa
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 :)