By: Kee Wee Wong Account Admin 25 Sep 2019 at 3:55 a.m. CDT

4 Responses
Kee Wee Wong gravatar
Hi Support, We have a requirement to manage user sessions programmatically. From what we understand, the user sessions should be created under ou=session,o=@!6E0D.A2C4.90F3.4A37!0001!0CFA.043A,o=gluu in OpenDJ. However, we are not seeing any session entries created when users are logged in. Are the sessions created elsewhere as we are not able to find them in the OpenDJ.

By Mohib Zico Account Admin 25 Sep 2019 at 5:25 a.m. CDT

Mohib Zico gravatar
What type of CACHE method you are using?

By Mohib Zico Account Admin 25 Sep 2019 at 5:57 a.m. CDT

Mohib Zico gravatar
Ok, in any case ( Cache Type: InMemory or Native_persistence) .. seems like we are not storing `session` under `ou=session` directly. Our session is being called `oxAuthSessionId` which is basically storing temporary session id under corresponding client. See attached screenshot. Just to double check with our Session Developer who wrote it... @Yuriy.Zabrovarnyy, am I correct?

By Yuriy Zabrovarnyy staff 25 Sep 2019 at 6:34 a.m. CDT

Yuriy Zabrovarnyy gravatar
We persist session in cache. Therefore session objects are stored in cache provider which is configured for given oxauth. If IN_MEMORY then it's in memory. If NATIVE_PERSISTENCE then under `ou=cache`. It is not stored under `ou=session`. `ou=session` is dropped since 4.0 from persistence. Thanks, Yuriy Z

By Kee Wee Wong Account Admin 26 Sep 2019 at 2:45 a.m. CDT

Kee Wee Wong gravatar
Hi @Yuriy.Zabrovarnyy and @Mohib.Zico, Thanks for the info! I can see that we configured InMemory caching. I've switched to NATIVE_PERSISTENCE and saw the ou=cache is created. Thanks for the help!