org.locomotive.module.base
Class LogoutHandler

java.lang.Object
  |
  +--org.locomotive.loco.handler.GenericHandler
        |
        +--org.locomotive.module.base.LogoutHandler

public class LogoutHandler
extends GenericHandler

A sample Logout handler. Resets the session cookie and marks the previous session dead in the session database. This is effectively "force expiring" a session. Sends back a generic "you have logged out" message to the client. To use this as a separate module add it to your hrt.conf file. An example would be:

      logout           org.locomotive.module.base.LogoutHandler
 


Fields inherited from class org.locomotive.loco.handler.GenericHandler
already_displayed_page, conn, DEBUG, ERROR, form_data, handler_uri, hd, NORMAL, session, steam_vars, url_tokens, user, WARNING
 
Constructor Summary
LogoutHandler()
           
 
Method Summary
 void handleRequest(HandlerData hd)
          initializes all the local variables.
 
Methods inherited from class org.locomotive.loco.handler.GenericHandler
displayPage, displayString, handleException, init, log, logEvent, sayBadURL, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogoutHandler

public LogoutHandler()
Method Detail

handleRequest

public void handleRequest(HandlerData hd)
Description copied from class: GenericHandler
initializes all the local variables. Whenever you subclass a GenericHandler, be sure to call super.handleRequest(hd) in the first line of your handleRequest() method.
Overrides:
handleRequest in class GenericHandler