Is there a difference?
There is.
Session.Remove(key)
deletes the entry (both key & value) from the dictionary while Session[key] = null
assigns a value (which happens to be null) to a key. After the former call, the key won't appear in the Session#Keys
collection. But after the latter, the key can still be found in the key collection.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…