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

com.github.shawven.security.browser.session.BrowserInvalidSessionStrategy Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version

package com.github.shawven.security.browser.session;

import com.github.shawven.security.browser.config.BrowserConfiguration;
import org.springframework.security.web.session.InvalidSessionStrategy;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 默认的session失效处理策略
 *
 * @author Shoven
 * @since 2019-05-08 21:53
 */
public class BrowserInvalidSessionStrategy extends AbstractSessionStrategy implements InvalidSessionStrategy {

	public BrowserInvalidSessionStrategy(BrowserConfiguration browserConfiguration) {
		super(browserConfiguration);
	}

	@Override
	public void onInvalidSessionDetected(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		onSessionInvalid(request, response);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy