Moves session enabling to the template app