public interface WebSessionManager
| Modifier and Type | Method and Description |
|---|---|
void |
changeSessionId()
Change session ID.
This method is required for defending from session fixation attack. |
void |
expire()
Expire current session.
|
OptionalLong |
getLong(String key)
Get Long value from current Session.
|
Optional<String> |
getString(String key)
Get String value from current session.
|
void |
remove(String key)
Remove data from the storage.
|
void |
responseFilter(me.geso.webscrew.response.WebResponse response)
This method may inject Cookie header to the session object.
|
void |
setLong(String key,
long value)
Set
Long value to the current session. |
void |
setString(String key,
String value)
Set String value to current session.
|
void responseFilter(me.geso.webscrew.response.WebResponse response)
response - Optional<String> getString(String key)
key - OptionalLong getLong(String key)
key - void setLong(String key, long value)
Long value to the current session.key - value - void setString(String key, String value)
key - value - void expire()
void changeSessionId()
void remove(String key)
key - Copyright © 2014. All rights reserved.