Re: Sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux