Re: Sessions
| From: | Daniel Brown | Date: | Sun, 14 Sep 2008 17:03:53 +0000 |
| Subject: | Re: Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280116@lists.php.net to get a copy of this message | ||
On Sun, Sep 14, 2008 at 12:03 PM, Tom Shaw <php.coder@tx.rr.com> wrote:
> Is what I'm saying below 100% true?
>
>
>
> 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
> 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. Plus
> you can access and manipulate the session array just like you could any
> other array.
Correct.
The only data the cookie will hold is the PHPSESSID variable,
which is - as you may surmise - the PHP SESSion IDentifier. This can
also be passed (by configuration) via the URL by appending the query
string ?PHPSESSID=fb376ac0b287ca09b1987e8738be298c (the value is
merely an example of the hash string).
Session variables are accessed and manipulated using the $_SESSION
superglobal array.
--
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.