SharePoint

Anonymous access and RunWithElevatedPrivileges

If you ever find yourself searching why on an Anonymous access page after some custom code has run you find yourself logged in then here’s why: If your using SPSecurity.RunWithElevatedPrivileges and SPContext.Current together then the current user credentials will be elevated. Instead you should make a new reference to the Site and Web.