Skip to content
  • Nick Sellen's avatar
    Allow sending messages by userId · 2d0f92da
    Nick Sellen authored and Matthias Larisch's avatar Matthias Larisch committed
    Connects to redis to find the session ids for a given user based
    on looking for the following sets::
    
      php:user:<userid>:sessions
      api:user:<userid>:sessions
    
    ... also checks if those sessions are valid, by looking in:
    
      PHPREDIS_SESSION:<sessionid>
      :1:django.contrib.sessions.cache<sessionid>
    
    and cleans up the sets if the sessions are not still there
    2d0f92da