Fix for session unique_key query

Redis session only verified the session id.
This change allows for comparing the session id and unique key and so that redis session can be used with the latest globals.py changes (ie. table(record_id, unique_key=unique_key).