spring-session icon indicating copy to clipboard operation
spring-session copied to clipboard

JdbcOperationsSessionRepository ignores lastAccessTime

Open kherrala opened this issue 10 years ago • 4 comments

Session always expires after maxInactiveInterval since creation, because lastAccessTime is not loaded from database column.

Session inactivity is checked using de-serialized object, which is not updated using UPDATE_SESSION_LAST_ACCESS_TIME_QUERY executed when there are no changes to session attributes.

Session in deleted by the check session.isExpired() in JdbcOperationsSessionRepository.getSession(String id)

kherrala avatar Mar 25 '16 21:03 kherrala

@vpavic Can I get your eyes on this?

rwinch avatar Mar 25 '16 21:03 rwinch

@rwinch I'll get a look and try to reproduce later today.

vpavic avatar Mar 26 '16 06:03 vpavic

Hopefully I'll get to fix this on Monday.

vpavic avatar Mar 26 '16 22:03 vpavic

@rwinch I've created #450 to fix this.

@kherrala thanks for testing the JdbcOperationsSessionRepository and spotting this issue!

vpavic avatar Mar 28 '16 15:03 vpavic