Page 1 of 1

what do u prefer? session or cookie

Posted: Thu Jan 20, 2005 2:57 am
by pleigh
hi there,

just wanna know from u guys out there your preference between the use of sessions or cookies....can u pick just one of them?

thanks in advance

pleigh

Posted: Thu Jan 20, 2005 3:05 am
by feyd
you want us to pick a preference? easy, sessions.

Posted: Thu Jan 20, 2005 3:09 am
by pleigh
hey feyd, thanks very much...i also thought of that but not very sure coz i'm just a newbie in php. thanks again.

Posted: Thu Jan 20, 2005 4:04 am
by patrikG
not to spoil anything, but sessions use cookies to identify the session with (session_id). If they can't set a cookie, the session_id is passed via GET.

Posted: Thu Jan 20, 2005 9:55 am
by ckuipers
Depends what you need to use it for...
In most cases it's best to use sessions, in some you need to use cookies.

Posted: Thu Jan 20, 2005 2:36 pm
by bla5e
since i dont know how to use cookies..


sessions