private EnsureGoodId ( string id, bool throwOnNull ) : void | ||
id | string | |
throwOnNull | bool | |
리턴 | void |
void EnsureGoodId (string id, bool throwOnNull)
{
if (id == null)
if (throwOnNull)
throw new HttpException ("Session ID is invalid");
else
return;
if (id.Length > SessionIDManager.SessionIDMaxLength)
throw new HttpException ("Session ID too long");
}