ASP.Net Web Forms LoginStatus Multiple LoginURL - suggestions?
Posted
by TGuimond
on Stack Overflow
See other posts from Stack Overflow
or by TGuimond
Published on 2010-03-17T17:15:11Z
Indexed on
2010/03/17
17:21 UTC
Read the original article
Hit count: 318
Hi Guys,
I am developing a multi-lingual website. I am determining the requested language via a querystring variable eg: http://mydomain.com/default.aspx?lang=en
I am using two <asp:LoginStatus />
controls in my masterpage. My web.config file is set up like this for forms authentication.
<authentication mode="Forms">
<forms loginUrl="~/login.aspx" protection="All" timeout="30"
name=".ASPXAUTH" path="/" requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false"/>
</authentication>
Currently when you click on a <asp:LoginStatus />
you will be redirected to my login page and the url will look something like this: http://mydomain.com/login.aspx?ReturnUrl=%2fdefault.aspx%3flang%3den
What solutions are available to me so that I can append my lang variable to my login.aspx? depending on which language is currently active?
© Stack Overflow or respective owner