Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 675

How could we manage separate sessions in Spring Security via @PathVariable?

$
0
0

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?


Viewing all articles
Browse latest Browse all 675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>