Re: Sessions

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

 



On Mon, Sep 15, 2008 at 11:20 AM, Thodoris <tgol@xxxxxxxxxx> wrote:

>
>
>  Also just to throw this out, you can also use the session_set_save_handler
>> function.  This will let you store your sessions wherever you see fit.
>>  file
>> system, database, etc.  Comes in handy when you're on multiple web
>> servers.
>>
>> http://us2.php.net/session_set_save_handler
>>
>>
>>
> Living to learn every single day. Although I find this feature very useful
> (storing session data in a database for e.g. mysql) I didn't find any good
> example in the manual or anywhere near using it.
>
> Can anyone enlighten me on this ?
>
> --
> Thodoris
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Yeah, I found this method great when I had to get sessions away from the
file system.  It let's you keep using $_SESSION while not losing sessions
everytime the load balancer redirects someone.

Check out Stut's link, its perfect.

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

[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