public class HttpSessionUtils extends Object
| 构造器和说明 |
|---|
HttpSessionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
destroy()
Destroy session
|
static javax.servlet.http.HttpSession |
get()
Get the http session
|
static Object |
getAttribute(String key)
Get value from http session attribute with the key
|
static void |
removeAttribute(String key)
Remove value from http session attribute with the key
|
static void |
setAttribute(String key,
Object value)
Set value in http session attribute
|
public static javax.servlet.http.HttpSession get()
public static void setAttribute(String key, Object value)
key - the key of the session attributevalue - the value of the namepublic static Object getAttribute(String key)
key - the key of the session attributepublic static void removeAttribute(String key)
key - the key of the session attributepublic static void destroy()
Copyright © 2019. All rights reserved.