[development] What is the difference between the $_SESSION array and client side cookies?

Cameron Eagans cweagans at gmail.com
Thu Feb 3 12:01:19 UTC 2011


This is more of a general PHP question.

Cookie = client side information. Can be manipulated on the client side.
$_SESSION = server side information. The only thing that's stored on the
client site is a session id. Cannot be manipulated on the client side.

See here: http://www.tizag.com/phpT/phpsessions.php

Thanks,
Cameron



On Thu, Feb 3, 2011 at 04:45, John Mitchell <mitchelljj98 at gmail.com> wrote:

> What is the difference between the $_SESSION array and client side cookies?
> I know that client side cookies can be updated and accessed within
> javascript on the client side and that the $_SESSION array can be accessed
> within modules.  My question is can the $_SESSION array also be updated and
> accessed within javascript on the client side.
>
> John
>
> --
> John J. Mitchell
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110203/65506fe5/attachment.html 


More information about the development mailing list