I am creating a website with password-protected pages in it.
I have two type of customer: 1. Free 2. Paid
For paid customers, pages would be rendered over HTTPS whereas for free customer, pages will be rendered over HTTP.
However, pages for both types of users would be same.
Please note, the URL for the two users should be same except HTTP/HTTPS part.
I am new to HTTPS and want to know how to achieve this.
Also would like to know, sometimes when we browse some HTTPS page and few of the items like image are referenced over HTTP then we get a cross in Address Bar indicating that some of the resources are not over HTTPS.
How can we overcome this problem, any suggestions?
2 Years Ago
Related Article:XAMP & ASP.NET conflicting at http://localhost
is a solved ASP.NET discussion thread by PhatBEAT that has 1 reply, was last updated 1 year ago and has been tagged with the keywords: asp.net, debug, localhost, port, run, xamp.
You might want to create a global variable (or Session variable) that indicates whether you should use HTTP or HTTPS for the current user (you could also add it to the users object) and then any time you make a reference to a URL you use your variable for the front.