You can clone with
HTTPS or Subversion.
Fixed the persistent cookie code
The cookie expiration date should be set only if the cookie is
persistent, not the other way around. The previous code did
exactly the opposite.
Minor refactoring: string.Compare -> string.Equals
Removed and sorted usings.
Added version outside cookie and roles.