mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Updated the information about wincache session cache.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298399 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
595bbc0d7a
commit
0ee9a7d35f
1 changed files with 8 additions and 10 deletions
|
@ -188,28 +188,26 @@ $user_allowed = array('DOMAIN\user1', 'DOMAIN\user2', 'DOMAIN\user3');
|
|||
<section xml:id="wincache.sessionhandler">
|
||||
<title>WinCache Session Handler</title>
|
||||
<para>
|
||||
The WinCache session handler (available since WinCache 1.1.0) can be used to configure PHP to store the session data in shared memory user cache.
|
||||
The WinCache session handler (available since WinCache 1.1.0) can be used to configure PHP to store the session data in shared memory session cache.
|
||||
Using shared memory instead of the default file session storage helps improve performance of PHP applications
|
||||
that store large amount of data in session objects.
|
||||
that store large amount of data in session objects. Wincache session cache uses file-backed shared memory, which ensures
|
||||
that the session data is not lost during recycling of IIS application pools.
|
||||
</para>
|
||||
<para>
|
||||
To configure PHP to use WinCache session handler set the <filename>php.ini</filename> setting
|
||||
<link linkend="ini.session.save-handler">session.save_handler</link> to <emphasis>wincache</emphasis>.
|
||||
<link linkend="ini.session.save-handler">session.save_handler</link> to <emphasis>wincache</emphasis>.
|
||||
By default the Windows temporary file location is used for storing the
|
||||
session data. To change the location of the session file use
|
||||
<link linkend="ini.session.save-path">session.save_path</link> directive.
|
||||
<example>
|
||||
<title>Enabling WinCache session handler</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
session.save_handler = wincache
|
||||
session.save_path = C:\inetpub\temp\session\
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<note>
|
||||
<simpara>
|
||||
In beta release of WinCache Extension 1.1, the user cache is kept in memory and is not backed by a
|
||||
file system storage. This means that the session data stored in the shared memory will be lost when
|
||||
IIS application pool is recycled.
|
||||
</simpara>
|
||||
</note>
|
||||
</para>
|
||||
</section>
|
||||
<section xml:id="wincache.resources">
|
||||
|
|
Loading…
Reference in a new issue