note 102685 added to book.session

[email protected] Mon, 28 Feb 2011 11:51:39 -0800
Newsgroups php.notes
Message-ID <[email protected]>
Please note, that database is NOT recommended for session storage. It can be a big performance bottleneck, especially in replicated environments.

For saving sessions, file handler seems to be very effective for most setups, except those situations:
 - if performance is an issue, the directory which stores session files can be mounted as tmpfs (ram disk).
 - if sharing sessions across multiple webservers is needed (in clustered environments), use memcache for storing session information (tip: you can setup more than one instance of memcache eliminate single point of failure). This method, however, sets a limitation of session size to 64k (this should be enough for most applications)
 - don't use NFS for sharing session files between webservers, it does not handle locking correctly and can cause corruption of session data.
----
Server IP: 69.147.83.197
Probable Submitter: 89.204.137.89
----
Manual Page -- http://www.php.net/manual/en/book.session.php
Edit        -- https://master.php.net/note/edit/102685
Del: integrated  -- https://master.php.net/note/delete/102685/integrated
Del: useless     -- https://master.php.net/note/delete/102685/useless
Del: bad code    -- https://master.php.net/note/delete/102685/bad+code
Del: spam        -- https://master.php.net/note/delete/102685/spam
Del: non-english -- https://master.php.net/note/delete/102685/non-english
Del: in docs     -- https://master.php.net/note/delete/102685/in+docs
Del: other reasons-- https://master.php.net/note/delete/102685
Reject      -- https://master.php.net/note/reject/102685
Search      -- https://master.php.net/manage/user-notes.php