Imagine we have a customized way of authentication for the below URLs.
Path1: http://www.example.com/company1/homePath2: http://www.example.com/company2/homePath3: http://www.example.com/company3/home...PathX: http://www.example.com/companyX/home
And companies have different sets of data.
Now, I want spring security to create separate sessions for each of the above urls based on http://www.example.com/XXX/. So, when I login into different URLs in separate browser tabs, I can work with all of them. I want to keep all sessions alive and avoid session termination after the authentication with the other URLs.
How to achieve this?