Re: Cookie or Session??
| From: | Awlad Hussain | Date: | Fri, 21 Mar 2003 16:18:02 +0000 |
| Subject: | Re: Cookie or Session?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140607@lists.php.net to get a copy of this message | ||
Thanks Mike,
I think using session will solve the problem of some user having
difficulties in loign.
----- Original Message -----
From: "Mike Brum" <php@crazyted.com>
To: <php-general@lists.php.net>
Sent: Friday, March 21, 2003 4:12 PM
Subject: RE: [PHP] Cookie or Session??
> It really depends on what you want to do.
>
> Cookies are client-side information and thus you can run into issues where
> clients don't allow cookies, have cookie-blocking apps or have outdated
> software that doesn't support them (though the latter continues to become
> less of an option as time passes).
>
> Sessions are server-side information that allows you a lot more control of
> the information and allows better manipulation of it. PHP has really nice
> session management and makes using them quite painless. The only downside
> really is that it adds more load to your servers.
>
> If you have a machine that's not under insane load all the time, you might
> want to give sessions a try. Once everything's configged properly (which
> shouldn't be hard at all - and it might even be turned on already!), to
get
> a user to log in, all you'll need to do is perform the DB password
> authentication and then pass the session information from script to
script.
>
> Good luck.
>
> -Mike
>
> -----Original Message-----
> From: Awlad Hussain [mailto:php@sheridan-phoenix.com]
> Sent: Friday, March 21, 2003 11:00 AM
> To: php-general@lists.php.net
> Subject: [PHP] Cookie or Session??
>
>
> Managing user login
> Whats the best option to use.. cookie?? or session??
>
> Currently i am using cookies and sometime user complain they can't login,
>
> what would you suggest?
> -awlad
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>