|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-28 19:09 UTC] ruslany at microsoft dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 19:00:01 2025 UTC |
Description: ------------ Setting ... session.save_handler = wincache on an IIS7 with FastCGI Loading wincache.php results in 2 header warnings ... Warning: session_start() [function.session-start.html]: Cannot send session cookie - headers already sent by (output started at D:\Web Sites\All Sites\wincache.php:814) in D:\Web Sites\All Sites\wincache.php on line 630 Warning: session_start() [function.session-start.html]: Cannot send session cache limiter - headers already sent (output started at D:\Web Sites\All Sites\wincache.php:814) in D:\Web Sites\All Sites\wincache.php on line 630 I have a patch which should do the trick, but essentially changing ... Index: wincache.php ============================================================ ======= --- wincache.php (revision 300801) +++ wincache.php (working copy) @@ -622,8 +626,6 @@ $ucache_info = wincache_ucache_info(); } if ( $session_cache_available && ( $cache_data == SUMMARY_DATA || $cache_data == SCACHE_DATA ) ){ - @session_name('WINCACHE_SESSION'); - session_start(); $scache_mem_info = wincache_scache_meminfo(); $scache_info = wincache_scache_info(); } @@ -635,6 +637,11 @@ exit; } +if ( $session_cache_available ){ + session_name('WINCACHE_SESSION'); + session_start(); +} + ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">