Skip to content

Allow customization of sessionId, e.g. hazelcast-session #2283

Closed
@trydofor

Description

@trydofor

Expected Behavior

Make it possible to customize the sessionId instead of the UUID.

Current Behavior

hazelcast-session, for example, use UUID as sessionId, cannot override or customize.

① let final class HazelcastSession to public

② extract MapSession cached = new MapSession(); to method can be override

public HazelcastSession createSession() {
MapSession cached = new MapSession();
cached.setMaxInactiveInterval(this.defaultMaxInactiveInterval);
HazelcastSession session = new HazelcastSession(cached, true);
session.flushImmediateIfNecessary();
return session;
}

Activity

trydofor

trydofor commented on Mar 28, 2023

@trydofor
Author

Provide Session Id Generation Strategy #2251

quaff

quaff commented on Mar 29, 2023

@quaff
Contributor

I think it's duplication of #2258

marcusdacoregio

marcusdacoregio commented on Apr 3, 2023

@marcusdacoregio
Contributor

Hi @trydofor, thanks for the report.

This is a duplicate of #11, we are aiming to get this feature for 3.1. Please subscribe to that issue for any updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @quaff@trydofor@marcusdacoregio

      Issue actions

        Allow customization of sessionId, e.g. hazelcast-session · Issue #2283 · spring-projects/spring-session