Web Programming
PHP Programming
The Difference Between

What is the difference between session and cookies?

User Avatar
Wiki User
2007-12-28 16:45:01

Cookies persist on your local computer, they are small text

files that are stored there by websites and web applications that

contain some basic information about you as a user.

Sessions are application specific and persist only as long as

you are actively engaged with a particular web site. For instance

if you leave Amazon.com open do some shopping, then close the web

browser before making any purchases, your session has ended,

however the cookie that identifies your username still exists on

your local computer.


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.