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

define overridable constants for session properties FS#1913 #578

Merged
merged 2 commits into from Mar 5, 2014

Conversation

Klap-in
Copy link
Collaborator

@Klap-in Klap-in commented Feb 28, 2014

if(!defined('DOKU_SESSION_DOMAIN')) define ('DOKU_SESSION_DOMAIN', '');

session_name(DOKU_SESSION_NAME);
if(version_compare(PHP_VERSION, '5.2.0', '>')) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need this version check? min. dokuwiki requirement is 5.2

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP api writes:
5.2.0 The httponly parameter was added.

(i guess the check had must be >= instead of >, hasn't?)

So I think that removing this check is ok.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this can be removed

@splitbrain
Copy link
Collaborator

👍 except from version check

@Chris--S
Copy link
Collaborator

Chris--S commented Mar 4, 2014

FYI, the version check code is also in inc/auth.php in auth_logoff() around line 500.

- moved cookiedir determination in the if-statement
Chris--S added a commit that referenced this pull request Mar 5, 2014
define overridable constants for session properties FS#1913
@Chris--S Chris--S merged commit 5fc8e2c into master Mar 5, 2014
@Chris--S Chris--S deleted the sessionprops branch March 5, 2014 11:59
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

3 participants