Created
October 15, 2018 13:07
-
-
Save nelson-ph/6883b8d1e7e9cc4e43b6a201beafcbe1 to your computer and use it in GitHub Desktop.
Drupal 8 Redis - Support anonymous sessions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: modules/redis_sessions/src/RedisSessionsSessionManager.php | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| --- modules/redis_sessions/src/RedisSessionsSessionManager.php (date 1539606489000) | |
| +++ modules/redis_sessions/src/RedisSessionsSessionManager.php (date 1539606489000) | |
| @@ -173,6 +173,9 @@ | |
| if (!empty($attributes['uid'])) { | |
| return $attributes['uid']; | |
| } | |
| + if (!empty($attributes['anonymous_uid'])) { | |
| + return $attributes['anonymous_uid']; | |
| + } | |
| } | |
| } | |
| return 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment