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

Redirect to a page after Session Timeout

0 Likes
1,949

Hi,

I have a functionality to redirect to home page (or any other page) after session timeout. Can you please let me know how to implement it in Hybris.

Regards,
Raghavendra

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Likes

You can use invalid-session-url attribute of <session-management> for this purpose. More information at https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#nsa-session-managemen...

You can check https://www.baeldung.com/spring-security-session for an example.

arvind-kumar_avinash
Active Contributor
0 Likes

Hi - did it help?

0 Likes

Thanks for your suggestion. It is working

arvind-kumar_avinash
Active Contributor
0 Likes

You are most welcome.

Former Member
0 Likes

Hi Devendra/Arvind, From hybris perspective, In which file we need to use invalid-session-url attribute?

Please elaborate.

stevime
Discoverer
0 Likes

But how can you identify if it's a session timeout or a logout action that invalidate the session in the session-management context? I'm trying to use the solution proposed but also for logout I'm redirected to the same url and I don't need it.

Answers (0)