History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-3593
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Ralph Schindler
Reporter: Scott
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_Session::expireSessionCookie fails on initial session creation

Created: 07/Jul/08 05:38 PM   Updated: 22/Jun/09 06:47 AM
Component/s: Zend_Session
Affects Version/s: 1.5.1
Fix Version/s: Next Mini Release

Time Tracking:
Not Specified

 Public Fields   Internal Project Management Fields   
Tags:
Participants: Ralph Schindler and Scott
Fix Version Priority: Nice to Have


 Description  « Hide
Zend_Session::expireSessionCookie method will fail when it is called on the same page as a new session is created.

Example:
a new user comes to my website, and I start a session using Zend_Session::start(), there will be no $_COOKIE[session_name()], so this test will fail,
if (isset($_COOKIE[session_name()])) { ... }

which leaves a case when after I have called Zend_Session::expireSessionCookie, the user still has a session cookie!

I suggest to replace the if test w/ the following
if (isset($_COOKIE[session_name()]) || self::$_sessionStarted) { ... }
}
which solved my issue



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.