All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vfny.geoserver.action.LogoutAction Maven / Gradle / Ivy

The newest version!
/*
 * Created on Jan 28, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vfny.geoserver.action;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * Remove UserContainter from session (and reset session) and return to welcome.
 * 

* This is a propert ConfigAction - you need to be logged in for this to work. *

* @author rgould, Refractions Research, Inc. * @author $Author: dmzwiers $ (last modification) * @version $Id: LogoutAction.java 6958 2007-06-08 16:20:59Z aaime $ */ public class LogoutAction extends GeoServerAction { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { // remove UserContainer from Session // logOut(request); //if we don't invalidate their session, we can save other variables, such as locale // return back to the welcome screen // (this is actually (for once) the correct place to go // return mapping.findForward("welcome"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy