Is there any other way to get HttpSession
object without HttpServlertRequest
in java?
Asked
Active
Viewed 510 times
0

Buhake Sindi
- 87,898
- 29
- 167
- 228

Subbareddy
- 9
- 2
-
use this link http://stackoverflow.com/questions/38051326/how-to-obtain-session-in-spring-without-request – santosh gore Mar 10 '17 at 05:59
-
http://stackoverflow.com/questions/35837285/differents-ways-to-get-servlet-context – Harsha W Mar 10 '17 at 06:08
-
1You need to provide a lot more context (such as code) for anyone to be able to answer this question properly. For example you can get access to @SessionScoped attributes in CDI without direct access to a HttpServletRequest. – Steve C Mar 11 '17 at 00:06
1 Answers
1
A session is by nature associated with a request from a specific user. So i don't think you will get a session object without request object.

vineeth
- 198
- 3
- 13