System.Web.SessionState.SessionInProcHandler.EnsureGoodId C# (CSharp) Method

EnsureGoodId() private method

private EnsureGoodId ( string id, bool throwOnNull ) : void
id string
throwOnNull bool
return 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");
		}