Skip to content

Commit 1bddfee

Browse files
committed
update readme
1 parent c02cde8 commit 1bddfee

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,22 @@ confugure ``PhpPlatform\WebSession\Session`` as the `session.class` in [php-plat
2020
}
2121
}
2222
```
23+
24+
## Configuration
25+
#### salt
26+
salt is used to encrypt session file name from actual session id
27+
```php
28+
$sessionFileName = md5($salt.$sessionId);
29+
```
30+
31+
#### path
32+
path is the uri path on which this session cookie must be set, this value is sent as Set-Cookie's path parameter
33+
34+
#### timeout
35+
Session timeout in seconds , this value is used to calculate Set-Cookie's expires and Max-Age parameters
36+
37+
#### name
38+
name of the session , this is the cookie name sent to the client
39+
40+
#### sessionFilePrefix
41+
this is the prefix for session file names for this application , since all the session files are stored in same directory , this helps to categories the session files for each application

0 commit comments

Comments
 (0)