SSL redirection done
Changed cookies to sessions