@FrostBiteFeb 21.2008 — #There's not much of a difference at all. Sessions hold data for the life of the web browser. As soon as you close the browser the sessions expire. Cookies can be set to hold data for a determined period of time. In essence, they're the same ? www.Tizag.com has some great tutorials on sessions and cookies.
@NogDogFeb 21.2008 — #There's not much of a difference at all. Sessions hold data for the life of the web browser. As soon as you close the browser the sessions expire. Cookies can be set to hold data for a determined period of time. In essence, they're the same ? www.Tizag.com has some great tutorials on sessions and cookies.
Hope this helps
-Frosty[/QUOTE] No, sessions can be configured to last any amount of time. It's just that the [i]default[/i] PHP settings have the session.cookie_lifetime set to zero, which means until the browser is closed.
The main difference between sessions and cookies is that sessions only need to save one cookie value on the client (browser), which is the session ID. All other data associated with a session are saved on the server, either in a file if you use the normal session functions and configuration or in a database if you choose to implement your own session handler functions.