esotalk / esoTalk

Fat-free forum software.
GNU General Public License v2.0
1.47k stars 236 forks source link

Problems with new persistent session mechanism #336

Open inliquid opened 10 years ago

inliquid commented 10 years ago

I was testing new algorithm of storing the sessions and found some problems, when f.i. you have open tab with esotalk forum and also you have checked "remember me" at login. So for instance I close laptop and go away for few hours. When I am back I see the forum, and for example I see new messages and want to answer - I type the message, but when I try to send it, system replies that I have no permission. The same will happen if I just try to push "Log Out". However, after I refresh the page it starts working as it should.

It seems that problem is that session cookie expires and for system to authorise the user you have to force page reload otherwise you will see like you have been authorised, but in fact you have not. At the moment I found only these 2 points: