|
Posted by Tim Roberts on 02/18/06 23:31
"EOZyo" <eozyo6@gmail.com> wrote:
>
>I have a question though, what's better to use (in a very general way)
>SESSIONS or COOKIE? I mean i worked already with cookies and everything
>works but if i need to learn one or the other, what would be the best?
Every time you create a cookie, you are sending more crapola over to the
client computer, to be stored on their hard disk, and ALL of your cookies
are transmitted back to you with EVERY http request the browser makes.
With a session, PHP basically sends one cookie, and then uses that cookie
to look up information that is stored locally, on your server. The
bandwidth impact is much lower.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|