NativeSessionManager.setAttribute

Binds the specified {@code value} to the associated session uniquely identified by the {@code attributeKey}. If there is already a session attribute bound under the {@code attributeKey}, that existing object will be replaced by the new {@code value}. <p/> If the {@code value} parameter is null, it has the same effect as if the {@link #removeAttribute(SessionKey sessionKey, Object attributeKey)} method was called.

@param sessionKey the session key to use to look up the target session. @param attributeKey the key under which the {@code value} object will be bound in this session @param value the object to bind in this session. @throws InvalidSessionException if the specified session has stopped or expired prior to calling this method. @see hunt.shiro.session.Session#setAttribute(Object key, Object value)

interface NativeSessionManager
void
setAttribute

Meta