Supporting Sessions in a Direct Action Application
In this next section we'll add a login page to the online forum to enable members to login and post replies and topics of discussion.
Using Direct Action Classes
The login page can be implemented as a stateless page.
It is not until the user has correctly typed in a username and password that we really have to create a session.
Revert back to developing the stateless application prototype again. Add a UserLogin page and lay it out pretty much as you did before.
The differences this time are that we us a direct action on the WOForm, and so must name the form elements as well. That is, you must specify the name attribute of the WOForm elements for them to work as a stateless direct action.