Export (0) Print
Expand All

4 Protocol Examples

A client sends a Set_Request to the state server in order to create new session data:

PUT /w3svc/root/fxstatebvt(NDbkwGi0191wFdDv0yOUOobtHns%3d)%
2f15hgq1uszp2tjt45lkwxmb55 HTTP/1.1
Host: 172.30.189.147:42424
Content-Length: 2381
Timeout: 10
Lock-Cookie: 1
ExtraFlags: 0
<actual session data>

The server responds:

HTTP/1.1 200 OK
Content-Length: 0
X-AspNet-Version: 2.0.50727

The client sends a GetExclusive_Request to the state server:

GET /w3svc/root/fxstatebvt(NDbkwGi0191wFdDv0yOUOobtHns%3d)%
2f15hgq1uszp2tjt45lkwxmb55 HTTP/1.1
Host: 172.30.189.147:42424
Exclusive: Acquire
Content-Length: 184

The server responds:

HTTP/1.1 200 OK
Content-Length: 2561
X-AspNet-Version: 2.0.50727
Timeout: 10
LockCookie: 1

...session state content here...

A different client tries to get the same item that was locked by using a Get_Request:

GET /w3svc/root/fxstatebvt(NDbkwGi0191wFdDv0yOUOobtHns%3d)%
2f15hgq1uszp2tjt45lkwxmb55 HTTP/1.1
Host: 172.30.189.147:42424
Content-Length: 163

The server responds:

HTTP/1.1 423 Locked
Content-Length: 378
X-AspNet-Version: 2.0.50727
LockCookie: 1
LockAge: 1275008970
LockDate: 1337890127

A client with lock updates the session by using Set_Request:

PUT /w3svc/root/fxstatebvt(NDbkwGi0191wFdDv0yOUOobtHns%3d)%
2f15hgq1uszp2tjt45lkwxmb55 HTTP/1.1
Host: 172.30.189.147:42424
Content-Length: 2981
Timeout: 10
Lock-Cookie: 1
ExtraFlags: 0
<updated session data>

The server responds:

HTTP/1.1 200 OK
Content-Length: 0
X-AspNet-Version: 2.0.50727

A client with lock then releases it by using ReleaseExclusive_Request:

GET /w3svc/root/fxstatebvt(NDbkwGi0191wFdDv0yOUOobtHns%3d)%
2f15hgq1uszp2tjt45lkwxmb55 HTTP/1.1
Host: 172.30.189.147:42424
Exclusive: release
Lock-Cookie: 1

The server responds:

HTTP/1.1 200 OK
Content-Length: 0
X-AspNet-Version: 2.0.50727

A second client tries to get the session again by using the non-exclusive Get_Request:

GET /w3svc/root/fxstatebvt(NDbkwGi0191wFdDv0yOUOobtHns%3d)%
2f15hgq1uszp2tjt45lkwxmb55 HTTP/1.1
Host: 172.30.189.147:42424
Content-Length: 163

The server responds:

HTTP/1.1 200 OK
Content-Length: 2982
X-AspNet-Version: 2.0.50727
Timeout: 20

<updated session data>
 
Show:
© 2014 Microsoft