2 ms·
Keeping sessions alive is useful, but there are lots of ways to improve security without losing much convenience. Sessions shouldn't live longer on the server
by Dylan16807 3y ago
Keeping sessions alive is useful, but there are lots of ways to improve security without losing much convenience.
Sessions shouldn't live longer on the server than on the client, that's just silly.
The cookie associated with a session should be updated with moderate frequency, and old cookies should be invalidated.
If a particular client doesn't connect for long enough, it should probably have its session revoked.