? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
27 Mar 2016

Pull Request for Issue #8851 .

Summary of Changes

This fixes two things:

  1. The double login that occurs when your session expires
  2. When restarting a session the id wasn't being regenerated properly as the session hadn't been started yet. This was causing PHP Warnings in PHP 7 (ref: #9555 //cc @andrepereiradasilva)

Testing Instructions

  1. Let your session expire (it might help lowering the session time to 1-2 minutes in global configuration)
  2. Try and login
  3. Login a second time
  4. Apply patch
  5. Let session expire again
  6. Login first time around successfully.
avatar wilsonge wilsonge - open - 27 Mar 2016
avatar wilsonge wilsonge - change - 27 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Mar 2016
Labels Added: ?
avatar wilsonge wilsonge - change - 27 Mar 2016
Title
Sessionfix
Double login fix
avatar brianteeman brianteeman - change - 27 Mar 2016
Milestone Added:
avatar brianteeman brianteeman - change - 27 Mar 2016
Title
Double login fix
Sessionfix
avatar brianteeman brianteeman - change - 27 Mar 2016
Milestone Added:
avatar brianteeman brianteeman - change - 27 Mar 2016
Category Libraries
avatar brianteeman brianteeman - test_item - 27 Mar 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 27 Mar 2016

I have tested this item :white_check_mark: successfully on d08fd12

Tested with php 5.6 and 7

great stuff!!!!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9619.

avatar richard67
richard67 - comment - 27 Mar 2016

Tested with success on PHP 5.6. Now will test on PHP 7 to see if there are any warnings.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9619.

avatar richard67 richard67 - test_item - 27 Mar 2016 - Tested successfully
avatar richard67
richard67 - comment - 27 Mar 2016

I have tested this item :white_check_mark: successfully on d08fd12

I tested with both PHP 5.6 and 7.

The thing with warnings in PHP 7 I could not reproduce. Did not have any warning without and with this PR.

Maybe the reason is that I have session handler = database and not PHP?

Anyway: This PR works as smooth as a fresh creamed baby butt.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9619.

avatar wilsonge
wilsonge - comment - 27 Mar 2016

I don't have a PHP 7 set up at the moment as just got a new laptop. But I think that @andrepereiradasilva could only get it when running the sample command line script I had in #9555

avatar richard67
richard67 - comment - 27 Mar 2016

Anyway, your sessionfix does the session fix :smile:

avatar brianteeman brianteeman - change - 27 Mar 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 27 Mar 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9619.

avatar joomla-cms-bot joomla-cms-bot - change - 27 Mar 2016
Labels Added: ?
avatar MATsxm MATsxm - test_item - 27 Mar 2016 - Tested successfully
avatar MATsxm
MATsxm - comment - 27 Mar 2016

I have tested this item :white_check_mark: successfully on d08fd12

Good morning... A bit late but success on PHP 5.6 & 7 - Thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9619.

avatar wilsonge wilsonge - change - 27 Mar 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-03-27 13:47:51
Closed_By wilsonge
avatar wilsonge wilsonge - close - 27 Mar 2016
avatar wilsonge wilsonge - merge - 27 Mar 2016
avatar joomla-cms-bot joomla-cms-bot - close - 27 Mar 2016
avatar wilsonge wilsonge - reference | 5db8892 - 27 Mar 16
avatar wilsonge wilsonge - merge - 27 Mar 2016
avatar wilsonge wilsonge - close - 27 Mar 2016
avatar joomla-cms-bot joomla-cms-bot - change - 27 Mar 2016
Labels Removed: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 27 Mar 2016

@wilsonge just tested. this also solves the warnings on php 7 i had on CLI scripts too (#9555 (comment)).

avatar wilsonge wilsonge - head_ref_deleted - 27 Mar 2016
avatar wilsonge
wilsonge - comment - 27 Mar 2016

Woot :D

Add a Comment

Login with GitHub to post a comment