Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -197,19 +197,22 @@ class _Redis extends \IPS\Session\Store
|
||||
{
|
||||
$redis = \IPS\Redis::i()->zRevRangeByScore( static::_key( 'session_online_users' ), '+inf', '-inf', array('withscores' => FALSE, 'alpha' => TRUE ) );
|
||||
|
||||
foreach( $redis as $data )
|
||||
if( \is_array( $redis ) )
|
||||
{
|
||||
list( $id, $sessionKey ) = explode( '__', $data );
|
||||
|
||||
if ( $id == $memberId )
|
||||
foreach ( $redis as $data )
|
||||
{
|
||||
if ( $result = \IPS\Redis::i()->hGetAll( static::_key( $sessionKey ) ) )
|
||||
list( $id, $sessionKey ) = explode( '__', $data );
|
||||
|
||||
if ( $id == $memberId )
|
||||
{
|
||||
try
|
||||
if ( $result = \IPS\Redis::i()->hGetAll( static::_key( $sessionKey ) ) )
|
||||
{
|
||||
return \IPS\Redis::i()->decode( $result['data'] );
|
||||
try
|
||||
{
|
||||
return \IPS\Redis::i()->decode( $result['data'] );
|
||||
}
|
||||
catch ( \RedisException $e ) {}
|
||||
}
|
||||
catch( \RedisException $e ){}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user