Wiki source for CommandHttpsession


Show raw source

======Command httpsession======

====Name====

**httpsession** Accesses session variables in a servlet.

====Synopsis====
**httpsession** [ [[SerializationOptions serialization options]] ] [options]


===Options===
||-setvar var value||Sets a session variable||
||-getvar var||Gets a session variable||
||-n||Dont print error if variable does not exist using -getvar||


====Description====
The httpsession command only works within a [[EmbeddingServlet Servlet.]]
Only one variable may be set or get with each call.
Setting a session variable sets the underlying servlet session variable which is persisted across calls using whatever session technology is implemented by the J2EE container. The value of the variable may be any type.



----
[[Commands]]
[[CategoryCommands]]
[[EmbeddingServlet]]

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki