asp.net - How to update a session variable after request is processed -


i have object need store in session.

at beginning of each request, copy object httpcontext.current.items collection can reused during request.

during request, state of object can modified, need write out session can used next request.

i tried updating via httpapplication.endrequest event handler, discovered httpcontext.current.session null point.

is there event handler in httpapplication occurs after request has been processed, within can still access httpcontext.current.session?

the session available httpapplication.postrequesthandlerexecute event, according documentation:

"occurs when asp.net event handler (for example, page or xml web service) finishes execution."

this page helpful in understanding sequence of httpapplication events:

http://blog.dotnetclr.com/archive/2007/03/14/httpapplication-pipeline-demystified.aspx


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -