For some time Ive been using the standard code of SPSecurity.RunWithElevatedPrivileges but my research has found its better to impersonate rather than elevate. Ive been running this new impersonate instead of elevate code for several months now and have found no problems whatsoever, in fact it has ran far smoother.
All Posts Tagged
Enabling anonymous users on a public SharePoint or WSS site can be a simple yet difficult thing. Simple, in that it involves just a few tick boxes, difficult in that it can expose a lot more of the site that your wish to show. I created a WebPart that detects anonymous users and redirects them to a given page to ensure there are no security gaps.