3 ms·
Or execute sql "update active_sessions set expired_at = now() where user_id = $1" Expiring all sessions should definitely be a critical point on anyone's check
by hombre_fatal 8y ago
Or execute sql "update active_sessions set expired_at = now() where user_id = $1"
Expiring all sessions should definitely be a critical point on anyone's checklist when building a password reset system.
Spotify didn't have this for the longest time and it was insane. Someone could buy a hacked account for $1 and get pretty much unlimited access. Though a special sort of infuriating softwaregore because you had to listen to what they were listening to.
- eknkc 8y agoIf you do not have a server side session store, only option is to use a nonce of some sort though.
- ben-schaaf 8y agoOr use a access/refresh token pair