I have a secured site using ssl. I have a php file that checks the login and if you are not logged in it brings up a login form, once you log in the page refreshed and the login is checked again and when it passes it loads the page content. What i am trying to do is have it load the login in https then when the javascript gets the ok from ajax that the login was successful, the page is reloaded with just http to reduce the load time and latency of the page (these are large pages and any little thing will help). I need to do this dynamically, so i can not just give it a redirect url.
Share
To solve this problem you can use this untested psuedo code loaded at the top of every page you require a login on.