New call-to-action
Results 1 to 6 of 6

Thread: Tabbed UI Logout Can Not Redirect

  1. #1
    Member
    Real Name
    Kim Gillan
    Join Date
    Apr 2011
    Location
    Denver
    Posts
    106

    Default Tabbed UI Logout Can Not Redirect

    Maybe I'm crazy, but I was sure this was working before and now nomatter what I do I can not get the Tabbed UI logout to work on my web application.

    My logout.aw5:
    <%a5
    a5ws_logoutuser()
    session.reset()
    response.redirect("masterhome.a5w")
    %>

    On my tabbed UI Home page (masterhome), I have a "button" that has the following code in the javascript onclick:

    location.href = 'logout.a5w';

    When the logout button is clicked, I get the following error:
    "The website cannot display the page HTTP 500 "

    I have tried doing an <%a5 a5w_include()>, I have tried using an a5w page in the Tabbed UI, but no matter how I try to insert the logout page, I get the same error.

    Again, I was sure this was working before. I have not done any updates that I can think of. Has anyone else had this problem?

    Thank you! Kim

  2. #2
    Former Alpha Employee JerryBrightbill's Avatar
    Real Name
    Jerry Brightbill
    Join Date
    Apr 2000
    Posts
    5,173

    Default Re: Tabbed UI Logout Can Not Redirect

    If you want to "break out" of the tabbed UI and open a full page, you can do use the same method as used by our login component. This is added to the page code just under the <head> tag if you select the option to "Open in full page" in the login component.
    HTML Code:
    <script language="JavaScript" type="text/javascript">
    <!--
    if(window.top!=window.self){
    window.top.location = 'index.a5w?9115641';
    }
    -->
    </script>
    If a page containing the login component is named 'index.a5w' and is opened in an iframe in the tabbed UI, it will reopen itself in a full page, replacing the page that contains the tabbed UI.

    If the URL to your login page is different, then replace the 'index.a5w' with the address to your page. In your case, that would appear to be 'masterhome.a5w'. The '?911561' is a random number added every time the page opens to force the page to not use any cached version in the browser.

  3. #3
    Member
    Real Name
    Kim Gillan
    Join Date
    Apr 2011
    Location
    Denver
    Posts
    106

    Default Re: Tabbed UI Logout Can Not Redirect

    It hit me in the wee morning hours that I HAD made a change:

    in the web security configuration, I changed from

    __protected__userid

    to
    __protected__ulink.

    Would that affect the ability to redirect using my Logout code?
    I just know all this was working, and now it's not.

    Not only do I get the above error, but it does NOT logout now. If I hit the back browser arrow key, I find that I am still logged in and fully functioning. Just can't logout now!

  4. #4
    Member
    Real Name
    Kim Gillan
    Join Date
    Apr 2011
    Location
    Denver
    Posts
    106

    Default Re: Tabbed UI Logout Can Not Redirect

    I did not want my login to open in a full page.

    I have my login page, and a Logout link, in the Header of my tabbedUI (masterhome).

    Is there a way to use your suggestion in the header of the tabbedUI?

    What I would really like to have is a LOGOUT BUTTON in the same table with the LOGIN Submit & Cancel buttons.

    But this is what I thought was working previously.

  5. #5
    Member
    Real Name
    Kim Gillan
    Join Date
    Apr 2011
    Location
    Denver
    Posts
    106

    Default Re: Tabbed UI Logout Can Not Redirect

    Okay, I changed the WEB SECURITY CONFIGURATION back to

    __protected__userid

    and now my LOGOUT works again as it did previously in the TabbedUI.

    It is recommended to use __protected__ulink, why does this not work in the TabbedUI?

    What is the difference between __ulink and __userid?

  6. #6
    Volunteer Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,656

    Default Re: Tabbed UI Logout Can Not Redirect

    Quote Originally Posted by kimhere View Post
    What is the difference between __ulink and __userid?
    It's completely arbitrary. But once you set it in security you don't want to change it if you use it elsewhere.

Similar Threads

  1. Response.redirect in Tabbed UI
    By Sparticuz in forum Application Server Version 10 - Web/Browser Applications
    Replies: 4
    Last Post: 06-24-2011, 01:20 PM
  2. Logout not really logging out?
    By glenschild in forum Application Server Version 9 - Web/Browser Applications
    Replies: 4
    Last Post: 04-05-2010, 02:10 PM
  3. Logout Dialog?
    By Peter.Greulich in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 02-07-2010, 08:38 PM
  4. Logout Problem
    By shkaijaz in forum Web Application Server v7
    Replies: 2
    Last Post: 04-15-2006, 05:09 AM
  5. logout
    By Josh Curtis in forum Web Application Server v6
    Replies: 4
    Last Post: 06-14-2005, 06:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •