package cn.com.qmth.stmms.common.session.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.com.qmth.stmms.common.session.model.StmmsSession;

public interface SessionService {

    /**
     * 保存session
     *
     * @param request
     * @param response
     * @param ss
     */
    void put(HttpServletRequest request, HttpServletResponse response, StmmsSession ss);

    /**
     * 获取session
     *
     * @param request
     * @return
     */
    StmmsSession get(HttpServletRequest request);

    /**
     * 删除session
     *
     * @param request
     * @param reponse
     */
    void remove(HttpServletRequest request, HttpServletResponse response);

}
