My project involves several front end sites, all looking at one database and using one admin system and code base. If you login to one of the sites, you don't automatically get logged in to the others. So, I'm using a cookie name with a prefix based on the site name. One of my sites has an & in its name - something like A&BSite. When I attempt to login to this site, I get no errors but neither do I get logged in. The code works happily for all the other sites, so I can only assume that either .NET, or the browsers (tried on IE7 and firefox) don't appreciate my use of an &. I've just updated the code to SiteName.Replace("&","") and all is happy and jolly once more. Weird!A quick straw poll around the office revealed that only one of the developers had come across this before.
comments powered by Disqus