Session.Timeout=5 超时时间 Session("变量名称")=字符串赋值 Session("变量名称") 取值
集合 Session.Contents("变量名称") = Session("变量名称") Session.Contents 数组 Session.Contents.Count 数量 Session.Contents(i)
属性 allowSessionState 指定是否启用ASP应用程序的会话状态持久性。 keepSessionIdSecure 指定如果通过安全会话通道分配,会话ID是否作为安全cookie发送。 max 指定并发会话的最大数量。 CodePage LCID SessionID Timeout 指定在发出与会话对象关联的最后一个请求后,会话对象维护的最长时间段(hh:mm:ss)。
方法 Session.Abandon 释放资源 Session.Contents.Remove() Session.Contents.RemoveAll()
事件 Session_OnEnd() Session_OnStart()
存放数组示例 Dim MyArray() Redim MyArray(5) MyArray(0) = "hello" MyArray(1) = "some other Session("StoredArray") = MyArray LocalArray = Session("StoredArray") LocalArray(1) = " there" 网址: https://docs.microsoft.com/en-us/iis/configuration/system.webServer/asp/session
|