Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi i've a method which logs user activities in the database table. My website doesn't have logout functionality, so I need to log this session timeout activity as logout and for that i need to call a method which executes the stored procedures with required parameters. How do i call this method in my code?

What I have tried:

I've tried calling my method in Session end() of global.asax.cs and set the timeout value to 1 but the entries are not being made in the table. Please let me know what needs to done. Thank you
Posted
Comments
Richard Deeming 11-Jun-21 4:38am    
We can't see your method, nor what you have tried. There is not enough information here for anyone to help you.
Chris Copeland 11-Jun-21 4:45am    
The documentation for session events states that the session state mode must be in "InProc" mode, are you sure your sessions are setup correctly? Also, 1 second is a very short interval to detect timeout, could it not also be that the server might discard the session before it's even properly instantiated?

What sort of debugging have you done? What does the code look like?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900