I am working with the Cookie Authentication Module, and in some cases we are experiencing problems where our members cookies become corrupt -- the cookie is touched by a number of sites, outside of the Community Server code ... and I'm working on tracking down a much better solution, however ... in the interim, I was wondering if there was a way to properly 'catch' the exceptions thrown by the Security Module when it fails to decrypt the cookie contents ...
Scenerio: user has cookie but cookie data is empty
Result: CS throws a "Server Error", and redirecting 500 messages to error.aspx fails to work
Wanted: I would like to be able to gracefully handle this 'failed login' and just delete the cookie so the user can re-authenticate, rather then displaying an error message of any sort -- however, I am not quite sure where I would catch this exception ...
Hi David,
If you're using the SDK version of Community Server, the place to catch the error is going to be in the Application_AuthenticateRequest() method of the CSHttpModule in the Components project.
Hope this helps,
Xander
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com