session_id checked for main page and switch, closes #4