cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Accessing session attributes from different contexts

0 Kudos
442

From within my custom backoffice extension I am setting a session attribute from a class that is located in: /backoffice/src

I would like to access this attribute from a separate class which is located in: /src

It seems that a new session is created in each case. So the attribute is not present. In both cases the same type of session service is being used (DefaultSessionService)

Is there anyway to access attributes in this way?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member625836
Active Contributor
0 Kudos

Hi,

Indeed classes that reside in backoffice/src are available only in web application context, while those from src are available in both root- and webcontext. Nevertheless it does not influence session. What defines session, is user login to particular application.

Cheers, Jacek