Changing loginUrl
Changing loginUrl
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
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
*polite bump*.
Can someone point me to where I configure this please?
Can someone point me to where I configure this please?
Re: Changing loginUrl
You need to set loginURL property. You can read more about loginURL from here
http://msdn.microsoft.com/en-us/library ... inurl.aspx
http://msdn.microsoft.com/en-us/library ... inurl.aspx
Re: Changing loginUrl
Thanks for the reply, however my initial question is where this resides in able commerce?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
Usually this would be in the web.confg
Code: Select all
<authentication mode="Forms">
<forms loginUrl="member_login.aspx"
defaultUrl="index.aspx" />
</authentication>
Code: Select all
<authentication mode="Forms">
<forms timeout="90" slidingExpiration="true" name="AC7.ASPXAUTH"/>
</authentication>
Re: Changing loginUrl
Hi again.
I realised that Login.aspx must be a default by Microsoft and that I needed to add the value like so:-
Thanks for jogging my memory 
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>

Re: Changing loginUrl
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
Seems I was a little bit late, any how sounds good that you figured it out.
Re: Changing loginUrl
No probs. Thanks for getting back to memazhar wrote:Seems I was a little bit late, any how sounds good that you figured it out.
