Fixed security exception being thrown when cookies are disabled