Main Menu
Lecture 1
Lecture 3
Lecture 4
Lecture 5
Lecture 6
Lecture 7
 

 

 

Maintaining State

HTTP is stateless

Every transition is unique with no history.

Need to maintain state to make dynamic pages

WOApplication and WOSession provide persistance by storeing variables

WOApplication

Your application class inherits from WOApplication

Values persist while ever application is running

Correct place to put hit count and other application wide state

WOSession

Your session class inherits from WOSession

Values persist while you are running the current session

Anything you want to persist outside session must be stored in a database