📄 sessioncountergood.aspx
字号:
<%@ Import Namespace="System.Net" %>
<Script Runat="Server">
Sub Page_Load
Dim objSessionService As SessionService
objSessionService = New SessionService
' Add session cookie to proxy
objSessionService.CookieContainer = New CookieContainer
objSessionService.CookieContainer.Add( _
New Uri( objSessionService.Url ), _
New Cookie( "ASP.NET_SessionId", Request.Cookies( "ASP.NET_SessionId" ).Value ) )
lblSessionCounter.Text = objSessionService.GetSessionCounter()
lblSessionID.Text = objSessionService.GetSessionID()
End Sub
</Script>
<html>
<head><title>SessionCounterGood.aspx</title></head>
<body>
<h2>This page works!</h2>
Your session ID is
<asp:Label
ID="lblSessionID"
Runat="Server" />
<p>
This page has been requested by you
<asp:Label
ID="lblSessionCounter"
Runat="Server" />
times!
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -