Re: Sessions
| From: | ANR Daemon | Date: | Mon, 15 Sep 2008 16:03:56 +0000 |
| Subject: | Re: Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280194@lists.php.net to get a copy of this message | ||
Greetings, "Tom Shaw".
In reply to Your message dated Sunday, September 14, 2008, 20:03:13,
> Is what I'm saying below 100% true?
I'd say, 99%. There are some technical issues included, which critical in
understanding session mechanics and debugging any causes.
> When you start a session using session_start() and start adding indexes to
> the session super global array a small cookie is set on the clients side
Small cookie WOULD BE SET, when you complete transaction (means, when user
receive your page).
> that keeps track of the user, and the session index data that you create is
> stored only in the memory on the server side unless specified in the PHP
> file to store the session data in some specified directory or means db.
As other mentioned already, PHP sessions stored on disk by default.
> Plus you can access and manipulate the session array just like you could any
> other array.
Pure truth.
As a sidenote, sessions different from cookies in the next way:
You can access cookies only on the next request, but you can access session
variables immediately after you set them.
--
Sincerely Yours, ANR Daemon <anrdaemon@freemail.ru>