Pending

User tests: Successful: Unsuccessful:

avatar aapis
aapis
7 Mar 2013

The _state test in the "get" method is flawed. Under normal session
operation, the _state is active, and pending logout or an expiration it will
remain active. The if-test in question tests whether the session is not active
AND not expired, and upon evaluating to true will return NULL (I see there is a
note for a more robust error message in the future, but that doesn't help me
today). Under normal operations, for example a user browsing the website, _state is active.

avatar aapis aapis - open - 7 Mar 2013
avatar aapis aapis - close - 8 Mar 2013
avatar aapis
aapis - comment - 8 Mar 2013

Turns out _state wasn't populating properly because it wasn't being instantiated the right way.

avatar aapis aapis - reopen - 8 Mar 2013
avatar aapis aapis - close - 8 Mar 2013

Add a Comment

Login with GitHub to post a comment