Add server side session for main page, login and logout.