Skip to content

Instantly share code, notes, and snippets.

@nelson-ph
Created October 13, 2018 16:26
Show Gist options
  • Select an option

  • Save nelson-ph/412b32275b6f55e4d7eef79d554ce604 to your computer and use it in GitHub Desktop.

Select an option

Save nelson-ph/412b32275b6f55e4d7eef79d554ce604 to your computer and use it in GitHub Desktop.
Drupal 8 Redis fix warning
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 1539447905000)
+++ modules/redis_sessions/src/RedisSessionsSessionManager.php (date 1539447905000)
@@ -257,7 +257,7 @@
*/
public function destroy() {
$uid = $this->getSessionBagUid();
- $this->redis->set("SESS_DESTROY:$uid:" . \Drupal::currentUser()->id());
+ $this->redis->set("SESS_DESTROY:$uid:", \Drupal::currentUser()->id());
if ($uid) {
if (\Drupal::currentUser()->id() == 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment