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

com.penglecode.common.web.shiro.session.SimpleSessionFactory Maven / Gradle / Ivy

Go to download

commons is a little java tool to make your development easier in your work.

The newest version!
package com.penglecode.common.web.shiro.session;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.SessionContext;
import org.apache.shiro.session.mgt.SessionFactory;

public class SimpleSessionFactory implements SessionFactory {

	public Session createSession(SessionContext initData) {
		if (initData != null) {
            String host = initData.getHost();
            if (host != null) {
                return new SimpleSession(host);
            }
        }
        return new SimpleSession();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy