Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
trydofor opened this issue Mar 28, 2023 · 3 comments
Closed

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

trydofor opened this issue Mar 28, 2023 · 3 comments
Assignees
Labels
status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@trydofor
Copy link

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;
}

@trydofor trydofor added status: waiting-for-triage An issue we've not yet triaged type: enhancement A general enhancement labels Mar 28, 2023
@trydofor
Copy link
Author

Provide Session Id Generation Strategy #2251

@quaff
Copy link
Contributor

quaff commented Mar 29, 2023

I think it's duplication of #2258

@marcusdacoregio
Copy link
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.

@marcusdacoregio marcusdacoregio added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 3, 2023
@marcusdacoregio marcusdacoregio self-assigned this Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants