Adapt session example to application as a function
Adapt session example to application as a function

See #64

testinfected/molecule,testinfected/molecule,testinfected/molecule,testinfected/molecule,testinfected/molecule