asp.net - ReturnUrl from mobile Login page not working -
i have .net forms authentication rolemanager type webwsite login page, login.aspx.
<authentication mode="forms"> <forms name="login" loginurl="login.aspx" protection="all" timeout="7200" path="/"/> </authentication> login.aspx redirect: response.redirect("mobilelogin.aspx?returnurl=" + request.querystring("returnurl"))
if user accesses page through mobile device, redirect them mobilelogin.aspx., when login mobile device mobilelogin.aspx, doesn't take user returnurl saying...
for example works, redirecting /admin/ folder
http://mysite.com/login.aspx?returnurl=%2fadmin%2f
this not work, redirects home page after logging in,
http://mysite.com/mobilelogin.aspx?returnurl=%2fadmin%2f
how can redirect mobile?
Comments
Post a Comment