troubleshooting Question

ReturnUrl from mobile Login page not working

Avatar of mlg74
mlg74 asked on
C#ASP.NETVisual Basic.NET
8 Comments1 Solution744 ViewsLast Modified:
I have a .net forms authentication with 2 login pages and ReturnUrl is not working on the 2nd on mobileLogin.aspx. Both the Login.aspx and the mobilLogin.aspx use a .net login control that are identical.

<authentication mode="Forms">
  <forms name="Login" loginUrl="login.aspx" protection="All" timeout="7200" path="/"/>

login.aspx redirect:
Response.Redirect("mobileLogin.aspx?ReturnUrl=" + Request.QueryString("ReturnUrl"))
For example this works, by redirecting to /admin/ folder
This does NOT work, it redirects to home page even after logging in,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros