Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

logged in user information gets interchange with another user

Avatar

Avatar
Give Back
Level 2
shivama92274331
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

2 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Give Back
Level 2
shivama92274331
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

2 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 1
View profile
shivama92274331
Level 2

28-01-2021

I have the below use case: I am using AEM 6.4 version. There is a third party integration with Magento. The session object gets interchange(i think so) as the logged in user information (first name, last name) gets interchange with another user,for example User A is logged in but intermittently on page header it shows user name as B or any other random user name, sometimes it shows correct user name as well. The sling model is using in the code to retrieve the session id and then fetching the user info from AEM repository and displays it on UI but on contrary the session is perfectly managed on Magento pages (It shows correct user name when clicked on username hyperlink on AEM header page, on click it takes to magento user info page.)

Pls do let me know any clues for this, due to this intermittent behavior user is not able to use add-to-cart functionality( as session is someone's else)

 

Thanks,

Shivam

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
lucian_nicolaescu
Level 2

04-02-2021

Maybe you can provide some parts of your code, but if you are using a servlet to retrieve that data, you should read: https://blogs.perficient.com/2017/12/05/2-common-concurrency-pitfalls-in-aem-and-how-to-avoid-them/ (the "Member Variables in OSGi Services" section).

Answers (2)

Answers (2)

Avatar

Avatar
Give Back
Level 2
shivama92274331
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

2 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Give Back
Level 2
shivama92274331
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

2 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 1
View profile
shivama92274331
Level 2

29-01-2021

Hi @KiranVedantam1992 ,

 

I have tried your solution but unfortunately it didn't work.

Avatar

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

169 likes

Total Posts

175 posts

Correct Reply

54 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

169 likes

Total Posts

175 posts

Correct Reply

54 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile
KiranVedantam1992
Level 7

29-01-2021

Hi @shivama92274331,

 

This should be an issue with the model which is fetching the user session. Please find my answer here. I have tried it from my end and it worked fine for me.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.