Alpha Video Training
Results 1 to 4 of 4

Thread: Log Off

  1. #1
    Real Name
    Rob Polley
    Join Date
    Nov 2005

    Default Log Off

    Is is necessary for web users to log off, or can they just close their browser? If they should log off, what functions happen in addition to closing the browser?

    Thank you.


  2. #2
    Member mattcarroll's Avatar
    Real Name
    Matt Carroll
    Join Date
    Nov 2009
    Sacramento, CA

    Default Re: Log Off

    I am a complete novice, but since no one else has piped in and I am working on a logoff right now on my project, here is what I use:

    for the java OnRedirect/etc event...

    for the xbasic event from a dialog aftervalidate event...

  3. #3
    Volunteer Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Bay Area, California

    Default Re: Log Off

    Just blanking out a session variable does not log them off.

    Create an A5W page named logoff.a5w with this code. Make a link to this page so they can click to log off. If they just close their browser, it is OK, but in that case they are NOT logged off until their logoff time expires, whatever you set in Web Security Configuration. Also, if you set Remember Me, they are logged in forever unless they specifically click Log Out (like this message board).


    'logs them out

    'clears all user session vars

    'Optional: save a msg to show elsewhere why they are no longer logged in. In case they forgot they clicked Log Out
    session.loginmessage = "You have been logged out. Please provide your login details below to access the system."

    'Optional: deletes this special var (which you may not have)
    delete session.__protected__ulink

    'sends them to your desired page after logout
    Steve Wood
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  4. #4
    Member cptutrecht's Avatar
    Real Name
    Ger Kurvers
    Join Date
    Feb 2010
    Netherlands, Utrecht

    Default Re: Log Off

    Hello Steve,

    I applied this code and it works. Unless:

    If a user hits the back button ( i tested in FireFox 3.6.3) in the logout page, he is first directed to the last page visited (tries to open it) and than redirected to the loginpage (because the session has gone of course). Works as espected.

    HOWEVER if user than tries to login I get a nasty WAS message:

    500 Internal Server Error
    "Script Error
    Error:Script: /dbvb/__a5RunGrid.a5w line:36
    Property not found
    x_out.Ajaxresponse subelement not found."

    And after that user will not be able to login until i stop/start the server if the last visited page before logout has a record expander set to auto expand first record.
    If the last page had not an record expander set to auto expand one get a chance to logout properly again, and than a user can login without restart of WAS.

    How can i prevent that?

    Thanks in advance

    Ger Kurvers
    Last edited by cptutrecht; 05-10-2010 at 07:03 AM. Reason: Additinal information available

Similar Threads

  1. WAS Access Log.Log large blocks of characters
    By LMOTCOB in forum Application Server Version 8
    Replies: 5
    Last Post: 01-02-2009, 12:25 PM
  2. was clsoing on log off
    By richard2007 in forum Application Server Version 9 - Web/Browser Applications
    Replies: 3
    Last Post: 12-18-2008, 03:08 PM
  3. can't log in
    By Conrad Lindes in forum Application Server Version 8
    Replies: 3
    Last Post: 10-02-2007, 12:50 AM
  4. Log-In Help
    By vinyltap in forum Web Application Server v7
    Replies: 16
    Last Post: 03-07-2006, 05:47 PM
  5. Log Off
    By Louis Nickerson in forum Web Application Server v6
    Replies: 7
    Last Post: 02-24-2005, 02:49 PM


Posting Permissions

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