Use SETEX command to set session

In order to be compatible with older version Redis, use `SETEX` command instead of `SET x y EX 360`.
Merge pull request #868 from reterVision/patch-2

Use SETEX command to set session