Skip to content

Make setSessionCookie protected, correct _sessionStart regression#785

Closed
cpjolly wants to merge 1 commit into
OXID-eSales:b-6.2.xfrom
cpjolly:b-6.2.x
Closed

Make setSessionCookie protected, correct _sessionStart regression#785
cpjolly wants to merge 1 commit into
OXID-eSales:b-6.2.xfrom
cpjolly:b-6.2.x

Conversation

@cpjolly

@cpjolly cpjolly commented Mar 31, 2020

Copy link
Copy Markdown
Contributor

This PR implements the requested changes and replaces PR #782. It also corrects a regression.

  1. Make the setSessionCookie function protected, so that modules that extend Session can modify the parameters passed to setOxCookie, for example to change the session lifetime.

  2. Add a standard comment header to setSessionCookie.

  3. Correct a regression in _sessionStart between master and b-6.2.x, where some redundant code that is removed in master has reappeared.
    See lines 313-318 in
    https://github.com/OXID-eSales/oxideshop_ce/blob/master/source/Core/Session.php
    See lines 312-329 in
    https://github.com/OXID-eSales/oxideshop_ce/blob/b-6.2.x/source/Core/Session.php

Make the setSessionCookie function protected, so that modules that
extend Session can modify the parameters passed to setOxCookie, for
example to change the session lifetime.

Correct a regression in _sessionStart between master and b-6.2.x,
where some redundant code that is removed in master has reappeared.
See lines 313-318 in https://github.com/OXID-eSales/oxideshop_ce/blob/master/source/Core/Session.php
See lines 312-329 in https://github.com/OXID-eSales/oxideshop_ce/blob/b-6.2.x/source/Core/Session.php
@realFlowControl realFlowControl changed the base branch from master to b-6.2.x March 31, 2020 11:45
Sieg pushed a commit that referenced this pull request Apr 1, 2020
Fixes _sessionStart regression

Make the setSessionCookie function protected, so that modules that
extend Session can modify the parameters passed to setOxCookie, for
example to change the session lifetime.

Related #785
Sieg added a commit that referenced this pull request Apr 1, 2020
@Sieg

Sieg commented Apr 1, 2020

Copy link
Copy Markdown
Member

Hey @cpjolly! Thanks for your try to rebase it! :) I have fixed the problem with _sessionStart code, and merged at 1a22016. Have a nice day!

@Sieg Sieg closed this Apr 1, 2020
@cpjolly

cpjolly commented Apr 1, 2020

Copy link
Copy Markdown
Contributor Author

Many thanks @Sieg and @flow-control .

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.

2 participants