若是要使用session的話,在handler的代碼中添加System.Web.SessionState的引用,並讓這個handler繼承IRequiresSessionState接口,必定要繼承這個接口,不然會出錯的session