I am building a feeds based application. Once a user logs in to the application, his PHPSESSID is used to publish to a REDIS channel and at the backend, a socket.io event listens and pulls the relevant feeds and pushes it back to the application.
The challenge that I am facing now is this. I login to the application, everything is perfect with feeds. Now if I close my browser without logging out and navigate to my site again. It redirects me to the homepage because of a cookie. However, the feeds don't appear. This is because the PHPSESSID gets renewed when I open my browser again.
How do I fix this problem? Is there a flaw in my architecture design or can I manipulate the destruction of PHPSESSID even after browser close?
Any help will be greatly appreciated.
Thanks