Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get ELMAH to include session values?
    text
    copied!<p>NOTE: I know the various reasons to avoid using the session, but this is a project I've inherited, so please skip that part of any replies :)</p> <p>Since it's a solved problem, I'm hoping someone can point to an ELMAH patch/branch/fork that includes logging session data rather than reinventing the wheel.</p> <p>One weird thing is an older post from Atif that says they're already logged:</p> <p><a href="http://markmail.org/message/ncmdgwm5rmzewbwu" rel="noreferrer">http://markmail.org/message/ncmdgwm5rmzewbwu</a></p> <p>commenter henningst mentioned adding in the session variables here:</p> <p><a href="http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx" rel="noreferrer">http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx</a></p> <p>Another approach (I'd rather avoid) is copying the values into cookies</p> <p><a href="http://www.sharpdeveloper.net/content/archive/2008/11/10/how-to-get-session-or-other-custom-values-into-elmah.aspx" rel="noreferrer">http://www.sharpdeveloper.net/content/archive/2008/11/10/how-to-get-session-or-other-custom-values-into-elmah.aspx</a></p> <p>I know one alternative is to switch to something besides ELMAH (like Exceptioneer - see <a href="http://exceptioneer.com/Public/ExceptioneerAndELMAH.aspx" rel="noreferrer">http://exceptioneer.com/Public/ExceptioneerAndELMAH.aspx</a>) but since this is my only problem with ELMAH at the moment, I'd rather just have a patched ELMAH than switch to something else.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload