share data between https and http

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jgn
Forum Newbie
Posts: 3
Joined: Thu Apr 02, 2009 8:03 am

share data between https and http

Post by jgn »

Dear forum, I am coding my first https site and have some questions. I was about to take the shortcut and make all pages secure by installing the certificate to http://www.mydomain.com so that all pages are secure but I feel it is not right. Any strong comments for or against doing that? Now to the main problem, when switiching from http pages to https pages I lose the state, my session variables are not accessible so I cant check if user is logged in or access the shopping cart. this is understandable but what is the best way to get this working correctly so that my regular pages are accessed from http://www.mydomain.com while sensitive data will be entered at https://secure.mydomain.com ? Thanks in advance.
jgn
Forum Newbie
Posts: 3
Joined: Thu Apr 02, 2009 8:03 am

Re: share data between https and http

Post by jgn »

Anyone have thoughts on this?
jgn
Forum Newbie
Posts: 3
Joined: Thu Apr 02, 2009 8:03 am

Re: share data between https and http

Post by jgn »

I need to mention that this is on a shared SSL certificate
Post Reply