sessions and template inheritence