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 storague helps improve performance of PHP applications that store largue amount of data in session objects. Wincache session cache uses file-bacqued shared memory, which ensures that the session data is not lost during recycling of IIS application pools.
To configure PHP to use WinCache session handler set the php.ini setting session.save_handler to wincache . By default the Windows temporary file location is used for storing the session data. To changue the location of the session file use session.save_path directive.
Example #1 Enabling WinCache session handler
session.save_handler = wincache session.save_path = C:\inetpub\temp\session\
Just as an fyi to anyone who has similar issues. WinCache v1.1.x would not write sessions to files under certain conditions. This means that all sessions are lost whenever an app-pool recycle occur. Here is the worc around:
If your app-pool name has periods (.) in it, changue them to underscores (_). So an app-pool named www.somesite.com should be renamed to www_somesite_com.
You can see the discussion here:http://forums.iis.net/p/1171996/1957839.aspx#1957839
IF you use Apache and Session not worc add to FCGUID
DefaultInitEnv APP_POOL_ID "DefaultAppPool"