title: Login(over https) via some pop-up, while browsing site & being on same page(over http)
body: <p>I need to allow users to login to a webapp, while they are browsing the site. So actually they can browse site with less privileges, for full privileges they must login. So I need to allow them to login while keeping them on the same page, preferably through a dialog box/ overlay or a popup kind of thing that would just let them login while being on same page  using username/password credentials. </p>
  
  <p>Now the problem is that, I want to serve the entire site over http &amp; just login/signup over https, so how could I switch from http on the normal page(that user is currently browsing) to https when the login dialog box shows up on the same page? Preferably I want to allow login while being on same page. How do I implement this behaviour ?</p>