Explore BrainMass
Share

Explore BrainMass

    MySQL and PHP Sessions and Cookies

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    What are the advantages and disadvantages of using cookies? What are the advantages and disadvantages of using sessions? Is one more secure than the other? Why?

    © BrainMass Inc. brainmass.com October 9, 2019, 11:35 pm ad1c9bdddf
    https://brainmass.com/computer-science/php/mysql-php-sessions-cookies-261195

    Solution Preview

    Hi,

    A cookie is a small piece of information which is stored in the computer's hard drive when viewing web pages in the browser. When viewing the same website where the cookie was obtained, the information from the cookie is retrieved by the web browser.

    An advantage of a cookie is that it saves information when the user jumps on other websites. For example, a user is filling up a survey and accidentally jumps to another web site, the information already filled up ...

    Solution Summary

    This posting contains the answers to the posted questions.

    $2.19