I figured it out. I have 3 different domains and I had to redirected all the domains to the main one where I installed the SSL on. Then I didn't get the Session expired pop up anymore.
The Ajax checker for username and email gave me an error though so I turned it of for now.