Announcement Announcement Module
Collapse
No announcement yet.
MVC without sessions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MVC without sessions

    I am just getting started with Spring MVC. I have a load balanced web server environment. We do not use the httpsession at all - we do not replicate sessions. It appears after some reading that Spring MVC can be used with or without sessions, true? In particular, it looks like sessionForm=false for the SimpleFormController will disable the use of http sessions when working with forms and spring binding. Am I understanding this properly? Is there anywhere in the framework that requires sessions? Or, anywhere that I need to be sure to configure to turn sessions off?

    Thanks.

  • #2
    Originally posted by mrshlthmps
    It appears after some reading that Spring MVC can be used with or without sessions, true?
    True.

    Originally posted by mrshlthmps
    Am I understanding this properly? Is there anywhere in the framework that requires sessions?
    Yes you are. I think you've spotted the main dependency on HttpSession (being sessionForm property of AbstractFormController). Another area is AbstractWizardFormController which uses the session.

    You can always search for HttpSession in the source to see where it is used.

    Comment

    Working...
    X