Can my software application maintain state when switching from normal HTTP (non-secure) protocol to HTTPS (secure) protocol?

When you change from non-secure (HTTP) to secure protocol (HTTPS), any cookies or client variables you are using with one protocol will not be recognized from one state to the next.
 
This is true since the web server views activity under each different protocol as completely different user sessions, so it does not maintain variable state between the two different protocols.
 
This is true whether or not you use a shared or dedicated SSL certificate. Because of this, it is best to use HTTP protocol for most user activity, and only switch to HTTPS protocol for sensitive data gathering, and then after receiving the data, provide a deliberate and compelling hyperlink that takes the user back into HTTP protocol.
 
For example, to go into secure mode, you would provide a hyperlink like:
https://www.domain.com/shoppingcheckout.htm and after checking out, the user would be presented with a hyperlink like:
 


  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

What do I need to do to put Flash on my website?

Flash is a client side feature - it runs on the user's computer, not on your web host. As long as...

How do I track how many hits my website gets?

Tracking on your site can be either done server-side or remotely. With server-side statistics,...

What are PHP, ASP, perl, etc?

These are all programming languages which are referred to by their acronyms.PHP - PHP: Hypertext...

How do I login to my domain's cPanel?

you can login to your cPanel by going to www.yourdomain.com/cpanel (yourdomain is...

Do I have to change my domain if I get a new host?

No. Provided that the domain is registered in your name (as it should be), you can simply update...

Powered by WHMCompleteSolution