{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2308","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2308/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2308/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2308/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/2308","id":115821385,"number":2308,"title":"Spring Security sessionFixation Config","user":{"login":"vrigan","id":6176251,"avatar_url":"https://avatars.githubusercontent.com/u/6176251?v=3","gravatar_id":"","url":"https://api.github.com/users/vrigan","html_url":"https://github.com/vrigan","followers_url":"https://api.github.com/users/vrigan/followers","following_url":"https://api.github.com/users/vrigan/following{/other_user}","gists_url":"https://api.github.com/users/vrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/vrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrigan/subscriptions","organizations_url":"https://api.github.com/users/vrigan/orgs","repos_url":"https://api.github.com/users/vrigan/repos","events_url":"https://api.github.com/users/vrigan/events{/privacy}","received_events_url":"https://api.github.com/users/vrigan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T07:36:21Z","updated_at":"2015-11-10T06:19:49Z","closed_at":"2015-11-09T14:09:14Z","body":"By Default;Spring Security sessionFixation will use changeSessionId;\r\nBut after /api/authentication success; The session will lost for every request;\r\nIf change sessionFixation to none;Everything ok;\r\nThe problem just for me?"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/155310592","html_url":"https://github.com/jhipster/generator-jhipster/issues/2308#issuecomment-155310592","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2308","id":155310592,"user":{"login":"vrigan","id":6176251,"avatar_url":"https://avatars.githubusercontent.com/u/6176251?v=3","gravatar_id":"","url":"https://api.github.com/users/vrigan","html_url":"https://github.com/vrigan","followers_url":"https://api.github.com/users/vrigan/followers","following_url":"https://api.github.com/users/vrigan/following{/other_user}","gists_url":"https://api.github.com/users/vrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/vrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrigan/subscriptions","organizations_url":"https://api.github.com/users/vrigan/orgs","repos_url":"https://api.github.com/users/vrigan/repos","events_url":"https://api.github.com/users/vrigan/events{/privacy}","received_events_url":"https://api.github.com/users/vrigan/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T06:19:49Z","updated_at":"2015-11-10T06:19:49Z","body":"The problem look like clear;\r\nFor example:\r\n    send 'index.html' request\r\n    create new session 123456 and Hazelcast will save it too\r\n    response session 123456\r\n    \r\n    send 'api/authentication' take session 123456 \r\n    \r\n    \r\n    When Spring Security on auth by org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.java line 223;\r\n    This function will do Spring Security SessionFixation;\r\n    In servlet3.1 default SessionFixation Strategy is ChangeSessionId,So the session will be change;\r\n    After Hazelcast will auto found the not in originalSessions sesssion and remove it;\r\n    This is why session is null;And sometimes first /api/account request is Ok;\r\n    \r\n"}}