Adds a missing section in the advanced form
Adds more session management code