Re: Sessions

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

 



On Sun, Sep 14, 2008 at 12:03 PM, Tom Shaw <php.coder@xxxxxxxxx> 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.

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