Package | Description |
---|---|
org.voovan.http.server | |
org.voovan.http.websocket |
Modifier and Type | Method and Description |
---|---|
HttpSession |
HttpRequest.getSession()
获取 Session
|
HttpSession |
SessionManager.getSession(Cookie cookie)
获取 Session
|
HttpSession |
SessionManager.getSession(String id)
获取 Session
|
HttpSession |
SessionManager.newSession(HttpRequest request)
获得 Session 如果没有对应的 session 则创建一个新的 Session
|
HttpSession |
HttpSession.refresh()
刷新 Session 的超时时间
|
Modifier and Type | Method and Description |
---|---|
void |
SessionManager.removeSession(HttpSession session)
移除会话
|
void |
SessionManager.saveSession(HttpSession session)
保存 Session
|
protected void |
HttpRequest.setSession(HttpSession session)
设置一个 Session
|
Modifier and Type | Method and Description |
---|---|
HttpSession |
WebSocketSession.getHttpSession()
获取 Http 的 session
|
Copyright © 2020 Voovan. All rights reserved.