Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sessionfix #9619

Merged
merged 3 commits into from Mar 27, 2016
Merged

Sessionfix #9619

merged 3 commits into from Mar 27, 2016

Conversation

wilsonge
Copy link
Contributor

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: Fix restart method causing fatal error #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.

@wilsonge wilsonge changed the title Sessionfix Double login fix Mar 27, 2016
@brianteeman brianteeman changed the title Double login fix Sessionfix Mar 27, 2016
@brianteeman brianteeman added this to the Joomla 3.5.1 milestone Mar 27, 2016
@brianteeman
Copy link
Contributor

I have tested this item ✅ 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.

@richard67
Copy link
Member

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.

@richard67
Copy link
Member

I have tested this item ✅ 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.

@wilsonge
Copy link
Contributor Author

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

@richard67
Copy link
Member

Anyway, your sessionfix does the session fix 😄

@brianteeman
Copy link
Contributor

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 27, 2016
@MATsxm
Copy link

MATsxm commented Mar 27, 2016

I have tested this item ✅ 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.

@wilsonge wilsonge merged commit 5db8892 into joomla:staging Mar 27, 2016
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 27, 2016
@andrepereiradasilva
Copy link
Contributor

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

@wilsonge wilsonge deleted the sessionfix branch March 27, 2016 20:21
@wilsonge
Copy link
Contributor Author

Woot :D

@joomla joomla deleted a comment from alo24h Jan 19, 2018
@brianteeman brianteeman mentioned this pull request Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants