Global Sessions with Redis Bug Fix
I recently ran into an issue on my node server where the sessions were all the same across website. For example, if someone logged in, then everybody who accesses the site would be logged in as that user. My sessions were being stored by redis -- because that is an efficient way of storing key:value pairs.
Anyways, the problem was that redis (on my server) wasn't properly configured. So logged into redis-cli and ran the "SHUTDOWN" command. Logged out of redis-cli. Copied the redis.conf template, from the source code folder for redis, to /etc/ using this command cp /path/to/redis.conf /etc/redis.conf . After that was copied over, I ran this command: redis-server /etc/redis.conf .That fixed the global session problem.














