joedelfonte / BSIT2102_EcoSustainable_Product_Marketplace

Eco-Sustain Marketplace/ Final Project of BSIT-2102 Group
1 stars 0 forks source link

Data Handling #5

Open joedelfonte opened 1 week ago

joedelfonte commented 1 week ago

Need to Finalize how PHP handle data -- 1 User per Run if possible add switch account by adding cookies table same data as associated account

joedelfonte commented 1 week ago

Also Try to think an easy user identification like handling forgot password

joedelfonte commented 1 week ago

Disregard how to identify user from its device using-- thats redundant for our project Try using IP address or mac?

joedelfonte commented 1 week ago

Then remember in using User Agent

joedelfonte commented 1 week ago

We Create a cookie and also stored in database, by using cookie we can initiallize the last user or what user access using that browser it can, we can use it to define all possible data need in that session

joedelfonte commented 1 week ago

The parent class contains confidential data like password and child class will contains other data needed

joedelfonte commented 1 week ago

password_hash is a good algorithm making it secure when it is in verifiying process

example:

Secure password as it retrieve from database $hashedPassword = password_hash($databasepassword, PASSWORD_DEFAULT);

it secure password like Original : password hash : $2y$10$eImiS2N8Zc3q9/0I2t8yOeH/x3F1MfrT2Re5JoN2HwhYc1O4I1wGm

then by usingpassword_verify() we can verify if the encryped string is matched