FOM: The Session Object

The session object is simply a wrapper around the Session object provided by the Cocoon environment. No methods were left out since they don't provide problems to the flow environment or suggest abuse.

---- methods ----

attributes

  • getAttribute(name)
  • setAttribute(name,value)
  • removeAttribute(name)
  • getAttributeNames()

control

  • invalidate()
  • isNew()
  • getId()

time

  • getCreationTime()
  • * getLastAccessedTime()*
  • setMaxInactiveInterval(interval)
  • getMaxInactiveInterval()

---- properties ----

[name] -> maps to the attribute indicates with the name

For example session.blah is equivalent to session.getAttribute("blah")

  • No labels