Jump to content

Recommended Posts

Posted

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 ??

Posted

Hi,

 

Welcome to the Forums :D

 

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).

Posted (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 by music4missions
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...