Skip to content

Commit d43dcb1

Browse files
authored
document json session serialization (laravel#5787)
1 parent 54a249c commit d43dcb1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

config/session.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@
4848

4949
'encrypt' => false,
5050

51+
/*
52+
|--------------------------------------------------------------------------
53+
| Session Serialization
54+
|--------------------------------------------------------------------------
55+
|
56+
| The session serialization strategy determines how the array of session
57+
| data will get serialized into a string for storage. Typically, JSON
58+
| serialization will be fine unless PHP objects are in the session.
59+
|
60+
| Supported: "json", "php"
61+
|
62+
*/
63+
64+
'serialization' => 'json',
65+
5166
/*
5267
|--------------------------------------------------------------------------
5368
| Session File Location

0 commit comments

Comments
 (0)