Session refactoring
Using permanent sessions