Revision [1412]
This is an old revision of CommandHttpsession made by DavidLee on 2010-05-14 04:16:44.
Command httpsession
Name
httpsession Accesses session variables in a servlet.
Synopsis
httpsession [options] serialize optionsOptions
-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 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
See Also xecho