ID: 15960 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Feature/Change Request Operating System: RH Linux 7.2 PHP Version: 4.1.2 New Comment:
Sorry, I guess that was less clear than I thought it was. It appears that if a user has their browser set to Prompt (for cookie acceptance). PHP will attempt to set the cookie every time session_start is called, causing the browser to pop up the query dialog box (accept/reject cookie?) on every page. It appears to me this is broken, session_start should be able to tell that a session exists, via existence of a PHPSESSID variable in the GET variables and not try to start a new cookie based session. Ie once a user has rejected a cookie, that session should stay cookieless, PHP should not try to browbeat the user into accepting the cookie. Previous Comments: ------------------------------------------------------------------------ [2002-03-08 13:44:33] [EMAIL PROTECTED] So you're saying that PHP sends the cookie even if the PHPSESSID was in the GET request? This doesn't happen to me with latest CVS.. So you could try a snapshot from http://snaps.php.net/ --Jani ------------------------------------------------------------------------ [2002-03-08 13:05:09] [EMAIL PROTECTED] This may be a documentation clarification issue, or it may be a session bug. In either case this seems like the most beneign way to report it. I've searched the on-line bug and email archives as well as read the annotated documentation and I can't tell if this is the normal, expected behavoir or not: On page1.php I use session_start(), reject the cookie follow a link to page2.php (the PHPSESSID was properly appended) On arrival at page2.php I am again prompted to accept/reject the cookie. I understand that choosing prompt/always/never is a browser/user decision, but shouldn't session_start detect that a session exists and that the cookie was rejected and not keep bugging the user? (Is this a bug or a feature request?) Eric Nielsen ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15960&edit=1