music4missions Posted April 12, 2005 Posted April 12, 2005 I want to be able to store my clients shopping experience via a cookie and MySQL. When the user goes to the secure area I want to log there cookie and details into a MySQL database for processing. Is it possible to do this in a secure way ?? I know exactly how I want to script it but how do I connect to my localhost database when in a https sessions ?? Is it the same as connecting from my domain ?? Quote
TCH-Andy Posted April 12, 2005 Posted April 12, 2005 Hi, Welcome to the Forums Yes, it can be done, and you would do it in exactly the same way as from your domain using http. If you want to make the storage additionally secure, you should encrypt the information in the mysql database. (Https, only secures the transmission of the data between server and client). Quote
music4missions Posted April 12, 2005 Author Posted April 12, 2005 (edited) How would you recommend this be done ?? I have only used MD5 before that makes the information un readable to me though which is useless. Any Ideas on PGP ?? Edited April 12, 2005 by music4missions Quote
TweezerMan Posted April 12, 2005 Posted April 12, 2005 Welcome to the forums, music4missions! It looks like you'd need to use something like one of PHP's Mcrypt encryption functions instead of hash functions such as MD5. Quote
music4missions Posted April 12, 2005 Author Posted April 12, 2005 Thanks for all the welcomes. OK, I ran PHP Info and found mcrypt is there as an installed extension (Thanks again for great hosting) I understand that I need to set a whole bunch of items for this type of encrytion($key, $cipher_alg, etc) so Ill let you know how I go. I may even add a tutorial of how to do this to your forums so you can check Ive done it right an others can use it. Thanks Quote
TCH-Bruce Posted April 12, 2005 Posted April 12, 2005 I may even add a tutorial of how to do this to your forums so you can check Ive done it right an others can use it. Tutorials are always welcome. Quote
stevevan Posted April 12, 2005 Posted April 12, 2005 A tutorial would be great! That way we ALL learn something! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.