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

add writable/session directory and set default App::sessionSavePath to it #1194

Merged
merged 2 commits into from
Sep 4, 2018

Conversation

samsonasik
Copy link
Member

to make default file-system based session storage driver work out of the box when session() called.

$sessionPath = WRITEPATH . 'session';
}

$this->savePath = $sessionPath;
Copy link
Member Author

Choose a reason for hiding this comment

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

this is for fallback when App:: sessionSavePath is null, but ini_get('session.save_path') returns empty string.

@lonnieezell lonnieezell merged commit 253f58b into codeigniter4:develop Sep 4, 2018
@samsonasik samsonasik deleted the session-path branch September 4, 2018 03:43
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