Dima
Dima

Reputation: 1065

How to expire just one attribute in a session (Java)

I am looking for a best solution on how to expire just one parameter in within the session in Spring. I have a session that expires in 3 hours, I need to add one parameter to it and expire it in 10 min.

ANy suggestions ?

Thank you

Upvotes: 0

Views: 1132

Answers (1)

ShyJ
ShyJ

Reputation: 4640

You can create a solution where all accesses to a session go through a component, which wraps your session and provides the expiry policy you want. This component could have a session scope.

Upvotes: 1

Related Questions