I need functionality that will allow to discard objects from session if they are not used in specified amount of time. It is simmilar to Cache timeout functionality.
Is there any session provider (possibly free) or pattern that achives that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We have created session wrapper that will additionally store information about last usage for each session object. In global.asax Application_PreRequestHandlerExecute we check if the session object has not been used during specified period and if it wasn’t we remove it from session.