Results 122 comments of Vedran Pavic

There's a PR to address this (see #1726), together with #1213. See the description of that PR for more details.

@mwftapi, your problem sounds like #838. That's a problem that was reported by MySQL users several time. Please also subscribe to that issue to track further updates.

Reopening to consider some further improvements based on [feedback](https://github.com/spring-projects/spring-session/pull/1726#issuecomment-737066477) from @jkuipers.

I don't feel like this is needed, as registering bean aligns nicely with other customizations we allow in `@Enable...Session` based configurations, while Spring Boot auto-configuration support offers further convenience using...

Hi @MichoFelipe - can you provide more details about your environment? I assume you are using MySQL in a multi-master setup, such as Galera? From my experience such setup can...

The expirations are handled by [`JdbcOperationsSessionRepository#cleanUpExpiredSessions`](https://github.com/spring-projects/spring-session/blob/master/spring-session-jdbc/src/main/java/org/springframework/session/jdbc/JdbcOperationsSessionRepository.java#L523-L533): ```java @Scheduled(cron = "${spring.session.cleanup.cron.expression:0 * * * * *}") public void cleanUpExpiredSessions() { int deletedCount = this.transactionOperations.execute(transactionStatus -> JdbcOperationsSessionRepository.this.jdbcOperations.update( JdbcOperationsSessionRepository.this.deleteSessionsByLastAccessTimeQuery, System.currentTimeMillis())); if (logger.isDebugEnabled()) {...

Closing as answered. If you have additional questions or feel that your original question isn't properly answered, please re-open the issue. As a side note, we've recently introduced some optimizations...

@vanekat Take a look at [this comment](https://github.com/spring-projects/spring-session/issues/838#issuecomment-318262971) and the `@Scheduled` annotation in particular - you can see that the `cron` expression is parameterized and can be customized using `spring.session.cleanup.cron.expression` property.

@MichoFelipe @vanekat It might be of your interest that there are proposed changes to Spring Session JDBC configuration too add first-class support for configuring cleanup cron via `@EnableJdbcHttpSession`. You can...

While working on another issue, I've managed to reproduce this in an integration test, so I'll reopen this and classify it as a bug. Unfortunately, the same test still fails...