Click to See Complete Forum and Search --> : Session? Cookie? or PHP_AUTH?
tuf-web.co.uk
12-14-2003, 11:06 AM
hey,
i was wondering, which is better to use
SESSION
COOKIES
or PHP_AUTH_USER/PHP_AUTH_PW
i understand that sessions are better than cookies because they are stored on the hosts computer and not the client, therefore not being easy to get hold of
but is PHP_AUTH better?
for a simple admin/member control panel what would you suggest?
interactive
12-14-2003, 01:12 PM
I think cookies are a bit unreliable IMHO. Sessions if used properly are perfect. As for PHP_AUTH, I don't really like using it because of the form, just a personal prefrence.
stolzyboy
12-16-2003, 11:56 AM
sessions all the way...and IIRC, I helped you with sessions before so you should pretty familiar with them
tuf-web.co.uk
12-16-2003, 02:46 PM
yeh very familiar thanks to you :) good work again ;)
is there any floor about using PHP_AUTH?
stolzyboy
12-16-2003, 03:49 PM
I just don't personally like using it, for the sake or the ugly dialog boxes and stuff, it is just so much nicer and cleaner using sessions.
LordShryku
12-16-2003, 04:07 PM
Gotta agree here. I'm not a cookie kinda guy, and PHP_AUTH is just oogly. You have complete control over the sessions...
stolzyboy
12-16-2003, 04:09 PM
Originally posted by LordShryku
Gotta agree here. I'm not a cookie kinda guy, and PHP_AUTH is just oogly. You have complete control over the sessions...
And why would you even possible think of disagreeing with me!?
:D
LordShryku
12-16-2003, 04:12 PM
Ok, I changed my mind. Use cookies. Just because. :p
mogster
12-22-2003, 05:49 PM
I'm a cookie man.
Especially around christmas :D
No, but I prefer cookies as authentication, and even prefer to set them by javascript.
Did you know that Sweden has outlawed the use of cookies? Now, if you'll like to serve ads by cookies, the client has to confirm for acceptance of each cookie.
By hand-delivery, I mean, ordinary prompts don't work.
So what happens is that they call up this guy in the Nobel-committee, or was it the swedish chef?), and he arranges the whole thing.
I'm only kidding. Almost.
knutm :-)
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.