Problem to Redirect To Login Page

  1. #1

    Problem to Redirect To Login Page

    Hello,

    I have created an application same as https://examples2.ext.net/.

    The UI is same as we see the examples in https://examples2.ext.net/

    But i have a problem. When my session is over i want to close the whole application(Page) and redirect the user to login page.

    When i am in one of the tab and if error occurs then the login page is opened in the same tab, instead of closing all the tabs and redirecting it to login page.

    Hope u r getting my problem.

    Please help to resolve this problem.
  2. #2

    I have the same problem.

    Hi

    Have you solved the problem yet?

    thank you.
  3. #3
    Quote Originally Posted by ozayExt View Post
    Hi

    Have you solved the problem yet?

    thank you.
    Hey Hi There,

    Yes i have used an javascript for that purpose and it has solved my problem.

    Now its working fine.

    The javascript i used is as follows:
    var CloseWindow = function() {
        if (window.top.frames.length != 0) {
            window.top.location = 'http://YOUR LOGIN PAGE ADDRESS/';
            
        }
    }
    And In *.cs page i have checked:

    if((SessionAlive) == false)
    {
    Ext.Msg.Show(new MessageBox.Config
                            {
                                Title = "Error",
                                Message = "Session Timed Out...Please Login Again",
                                Buttons = MessageBox.Button.OK,
                                Icon = (MessageBox.Icon.ERROR),
                                Fn = new JFunction { Fn = "CloseWindow" }
                            });
                Response.Redirect("YourLogoutPage.aspx");
                return;
    }
    Hope This will help you...

    Thanks...
    ANIKET
  4. #4
    thank you so much
  5. #5
    Quote Originally Posted by ozayExt View Post
    thank you so much
    Hey Was It Helpful????
  6. #6
    Yes, sure it was
  7. #7
    I have also the same problem.
    I have tried this code but its not working....


    Vaishali Khatri
    Kintu Designs PVT LTD.

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. Replies: 0
    Last Post: Feb 23, 2012, 6:18 AM
  5. [CLOSED] Page redirect problem
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 30, 2011, 3:08 PM

Posting Permissions