? Success

User tests: Successful: Unsuccessful:

avatar chrBrd
chrBrd
17 Nov 2016

Currently, if a session is closed (not destroyed) the session object's _state property remains set as 'active'. Consequently, using the session object's start() method will result in it returning before it can do anything.

As a session has been ended by the server once the close() method has been called the object's _state property should possibly be set to 'inactive'.

Summary of Changes

Amended JSession class' close() method to set session object's _state property to 'inactive' after a session is ended by the server.

Testing Instructions

  • Apply patch.
  • Wait for a session to start.
  • Close it using close();
  • The session object's _state property will be set to 'inactive' once the handler's save() method has been executed and the server has ended the session.

Documentation Changes Required

None

Note

In my testing before implementing this I couldn't see any good reason for a session object's state to remain 'active' once the actual session's been ended by the server; I accept there may well be one I overlooked.

avatar chrBrd chrBrd - open - 17 Nov 2016
avatar chrBrd chrBrd - change - 17 Nov 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2016
Category Libraries
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar chrBrd chrBrd - change - 18 Nov 2016
The description was changed
avatar chrBrd chrBrd - edited - 18 Nov 2016
avatar wilsonge
wilsonge - comment - 18 Nov 2016

This is the kinda change which is going to cause all kinds of people all kinds of issues I'm sure. But it looks clearly correct to me so I'm going to bite the bullet and merge on review

avatar wilsonge wilsonge - close - 18 Nov 2016
avatar wilsonge wilsonge - merge - 18 Nov 2016
avatar wilsonge wilsonge - close - 18 Nov 2016
avatar wilsonge wilsonge - change - 18 Nov 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-18 17:07:10
Closed_By wilsonge

Add a Comment

Login with GitHub to post a comment