cancel
Showing results for 
Search instead for 
Did you mean: 

Where we can set new parameters in session (using commercewebservices)?

Former Member
0 Kudos

Hi Experts,

We are customizing some webservices in extension "commercewebservices v2". We need to set new parameters in Hybris session, where we can put this code? What is the best practice ?

For more details, we got these parameters from authenticated user.

Regards

Houssem

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks ,

Parameters to set in session are related to logged in user and their user groups Can we use UserMatchingFilter class int this case?

Rehards

Houssem

raghavendra_desu
Contributor
0 Kudos

Hi Houssem,

I would suggest to override initializeSiteFromRequest method from DefaultContextInformationLoader class, where the site will be associated with the session from base site filter based on the url request.

Regards,

Raghavendra.