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

Installation docs unclear #63

Open
GuySartorelli opened this issue Oct 4, 2021 · 0 comments
Open

Installation docs unclear #63

GuySartorelli opened this issue Oct 4, 2021 · 0 comments

Comments

@GuySartorelli
Copy link
Member

GuySartorelli commented Oct 4, 2021

```php
// Ensure that you define a sufficiently indeterminable value for SS_SESSION_KEY in your `.env`
use SilverStripe\HybridSessions\HybridSession;
HybridSession::init(SS_SESSION_KEY);
```

If I was to actually copy this into my _config.php file, I'd get an error because no constant SS_SESSION_KEY has been defined.

What I assume is meant here is that the value for that environment variable be passed in, though it would be easy to read this as "pass in the name of the environment variable" instead, which would result in many different projects using the string "SS_SESSION_KEY" for encrypting their sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants