troubleshooting Question

Direct user to specific login page after session times out

Avatar of derrekdeveloper
derrekdeveloperFlag for United States of America asked on
ASP.NET
3 Comments1 Solution341 ViewsLast Modified:
I have a few pages that require users to login to use. When their session times out I want them to be directed to another login screen other than the standard one I have at the root which is login.aspx. I want them to be directed to mobile/Default.aspx which also has a login screen. It seems I should be able to do this in the WebConfig but I don't know the syntax if in fact it is possible. I tried the following but it is wrong.

<location path="m_search.aspx">
<authentication mode="Forms">
  <forms loginUrl="login.aspx"
    defaultUrl="mobile/Default.aspx" />
</authentication>

<authorization>
      <deny users="*"/>
    </authorization>
</location>

I am running ASP.Net 4 for VB....not c#

If you can help please provide the code.
ASKER CERTIFIED SOLUTION
Kumaraswamy R

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
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 3 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