public interface LogicalSession
| Modifier and Type | Method and Description |
|---|---|
boolean |
areTokensGenerated() |
Object |
getAttribute(String attributeName)
Retrieves an object from the session using its name
|
String |
getKey()
Returns the logical session key
|
void |
invalidate()
Invalidates this session then unbinds any objects bound to it.
|
boolean |
isNew()
Returns
true if the client does not yet know about the
session or if the client chooses not to join the session. |
void |
setAttribute(String attribute,
Object value)
Saves an object to the current session
|
void |
setTokensGenerated(boolean areTokensGenerated)
Set whether the objects were generated or not.
|
String getKey()
boolean isNew()
true if the client does not yet know about the
session or if the client chooses not to join the session.true if the server has created a session, but the client has not yet joinedHttpSession.isNew()void invalidate()
boolean areTokensGenerated()
void setTokensGenerated(boolean areTokensGenerated)
areTokensGenerated - set true if the tokens were generated, false otherwisevoid setAttribute(String attribute, Object value)
attribute - the name to which the object is bound; cannot be nullvalue - the object to be boundHttpSession.setAttribute(java.lang.String, java.lang.Object)Copyright © 2025 OWASP. All rights reserved.