[CLOSED] Redirect to login page when session expires

  1. #1

    [CLOSED] Redirect to login page when session expires

    Hi, I am having problem when session expires and I select any item in accordion menu. The login window appears inside the tabpanel. I tryed many things, without success.

    Please see attached images.

    Thanks

    Web.config

    <authentication mode="Forms">
          
          <forms name="umz_start" loginUrl="/Default.aspx"  timeout="1" protection="All" />
          
        </authentication>
        
        <authorization>
          <deny users="?" />
        </authorization>
    Attached Thumbnails Click image for larger version. 

Name:	InsideFrame_a.png 
Views:	32 
Size:	68.6 KB 
ID:	7056   Click image for larger version. 

Name:	OutSideFrame.png 
Views:	28 
Size:	70.0 KB 
ID:	7057  
    Last edited by Daniil; Oct 22, 2013 at 2:42 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Try to redirect to another page:

    <forms name="umz_start" loginUrl="/RedirectToLogin.aspx" timeout="1" protection="All" />
    That page should contain the following JS in its body:

    window.top.location = '/Default.aspx';
  3. #3
    Hi,

    1 window.top.location = '/Default.aspx';
    Work fine in Chrome, but cause loop in IE and FF.

    I found this and works well.

       if (top.location != self.location) {
            top.location = self.location.href
       }
    Thanks
  4. #4
    Thank you for sharing that.

Similar Threads

  1. login & response.redirect
    By svk in forum 1.x Help
    Replies: 2
    Last Post: Jan 17, 2013, 6:10 AM
  2. [CLOSED] about:After login Redirect?
    By wkcode in forum 1.x Help
    Replies: 6
    Last Post: Jan 15, 2013, 5:12 AM
  3. [CLOSED] How to redirect after login
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 11
    Last Post: Jun 20, 2012, 1:21 PM
  4. Problem to Redirect To Login Page
    By aniketyadav7 in forum 1.x Help
    Replies: 6
    Last Post: Feb 23, 2012, 7:29 AM
  5. Replies: 0
    Last Post: Feb 23, 2012, 6:18 AM

Posting Permissions