Page 1 of 1

PHP and HTTPS

Posted: Fri May 27, 2005 3:42 pm
by loosus
I've never used the HTTPS protocol, but I probably will be in the next month or two because I'm helping a guy setup a site that'll be collecting some relatively private information (e.g., social security numbers).

If I use HTTPS, will I need to make any changes to my PHP code? For example, will I need to decrypt the posted form data, or is the encryption/decryption all transparent to the PHP code?

Thanks in advance!

Posted: Fri May 27, 2005 3:50 pm
by Burrito
you need to buy a certicate from a CA, and install it on your server. You don't need to do anything with php.

a couple popular CA's are thawte and verisign.

Posted: Fri May 27, 2005 3:56 pm
by loosus
Burrito wrote:you need to buy a certicate from a CA, and install it on your server. You don't need to do anything with php.

a couple popular CA's are thawte and verisign.
I know that. But what I'm asking is this: does the PHP interpreter know (or care) if the protocol is either HTTP or HTTPS?

Posted: Fri May 27, 2005 3:58 pm
by Burrito
Burrito wrote:You don't need to do anything with php.

^^

Posted: Fri May 27, 2005 9:10 pm
by hongco
if you deal with cookie in secured area, make sure to set the last paramet to 1 for set_cookie function

and session, i am not sure how - I had posted a questions similar to yours, and no one answered :roll: