[wp-trac] [WordPress Trac] #20256: PHP SESSION issues with Chrome

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 18 19:05:40 UTC 2012


#20256: PHP SESSION issues with Chrome
---------------------------+-------------------------------------
 Reporter:  aternus        |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  3.3.1
 Severity:  critical       |   Keywords:  has-patch needs-testing
---------------------------+-------------------------------------
 Hey everybody,

 After a long time of breaking my head on why SESSIONs were broken with
 Chrome, I've found a solution.

 '''The ISSUE:'''
 Wordpress rewrite doesn't report 404 properly for a missing favicon (more
 elements might be involved).

 '''SCENARIO:'''
 Plugin generates CAPTCHA and stores the value inside the $_SESSION array.
 Because of the missing 404 header/wrong rewrite rules, Chrome makes
 several requests resulting in CAPTCHA being refreshed without user input
 submit.

 '''FIX:'''
 Send 404 header for missing files.

 http://stackoverflow.com/questions/2953536/randomly-losing-session-
 variables-only-in-google-chrome-url-rewriting

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20256>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list