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

how to handle user session in cq5

Avatar

Avatar
Validate 1
Level 1
simran72
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
simran72
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
simran72
Level 1

15-10-2015

Hi,

I am working on a project based on cq5.5and neded to end user session on logout( donnot want user to see page when pressed back button on browser). My project uses many java files which all use different jcr session. Anyone please help me how I can manage user session (like session.invalidate in http) in CQ.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-10-2015

Here is a community article that may help:

http://cqdump.wordpress.com/2013/03/18/jcr-sessions-and-cq5/

Hope this helps.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
simran72
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
simran72
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
simran72
Level 1

15-10-2015

As mentioned in the article we use different sessions for each interaction with crx. Now, in my project user logs in and home page is shown. Friom there user can navigate to different pages. But, in case of logout I am not able to end user session because I don't know how to hadle user session. As mentioned in post, my project has different java files which create jcr session and close it. I don't know how user session is maintained across the website.