Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Metodologias de Programação IV - Aula 4, Secção 2 - Suporte para sessões no protocolo HTTP

6,439 views

Published on

Suporte para sessões no protocolo HTTP

Published in: Education, Technology
  • Be the first to comment

Metodologias de Programação IV - Aula 4, Secção 2 - Suporte para sessões no protocolo HTTP

  1. 1. Suporte para sessõesno protocolo HTTP<br />2011-2012<br />Metodologias de Programação IV<br />
  2. 2.
  3. 3. GET / HTTP/1.1<br />Host: www.amazon.co.uk<br />
  4. 4.
  5. 5.
  6. 6.
  7. 7.
  8. 8.
  9. 9.
  10. 10.
  11. 11.
  12. 12. GET / HTTP/1.1<br />Host: www.amazon.co.uk<br />User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1<br />Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br />Accept-Language: en-gb,en;q=0.5<br />Accept-Encoding: gzip, deflate<br />Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br />Connection: keep-alive<br />HTTP/1.1 200 OK<br />Date: Mon, 17 Oct 2011 13:50:41 GMT<br />Server: Server<br />Set-Cookie: skin=noskin; path=/; domain=.amazon.co.uk; expires=Mon, 17-Oct-2011 13:50:41 GMT<br />Set-Cookie: session-id-time=2082758401l; path=/; domain=.amazon.co.uk; expires=Tue, 01-Jan-2036 00:00:01 GMT<br />Set-Cookie: session-id=277-7333656-1660356; path=/; domain=.amazon.co.uk; expires=Tue, 01-Jan-2036 00:00:01 GMT<br />x-amz-id-1: 10VSKZSDDWJ9Z3JRE65W<br />P3p: policyref="http://www.amazon.co.uk/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAoIVDoCONoOTPo OUR DELiPUBiOTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "<br />x-amz-id-2: AKVgPRcXAfa2umQWhTdgF4bknYbH4CCPHdgZcegr07M=<br />Vary: Accept-Encoding,User-Agent<br />Content-Encoding: gzip<br />nnCoection: close<br />Content-Type: text/html; charset=ISO-8859-1<br />Transfer-Encoding: chunked<br />
  13. 13. GET / HTTP/1.1<br />Host: www.amazon.co.uk<br />User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1<br />Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br />Accept-Language: en-gb,en;q=0.5<br />Accept-Encoding: gzip, deflate<br />Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br />Connection: keep-alive<br />HTTP/1.1 200 OK<br />Date: Mon, 17 Oct 2011 13:50:41 GMT<br />Server: Server<br />Set-Cookie: skin=noskin; path=/; domain=.amazon.co.uk; expires=Mon, 17-Oct-2011 13:50:41 GMT<br />Set-Cookie: session-id-time=2082758401l; path=/; domain=.amazon.co.uk; expires=Tue, 01-Jan-2036 00:00:01 GMT<br />Set-Cookie: session-id=277-7333656-1660356; path=/; domain=.amazon.co.uk; expires=Tue, 01-Jan-2036 00:00:01 GMT<br />x-amz-id-1: 10VSKZSDDWJ9Z3JRE65W<br />P3p: policyref="http://www.amazon.co.uk/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAoIVDoCONoOTPo OUR DELiPUBiOTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "<br />x-amz-id-2: AKVgPRcXAfa2umQWhTdgF4bknYbH4CCPHdgZcegr07M=<br />Vary: Accept-Encoding,User-Agent<br />Content-Encoding: gzip<br />nnCoection: close<br />Content-Type: text/html; charset=ISO-8859-1<br />Transfer-Encoding: chunked<br />
  14. 14. Set-Cookie: skin=noskin; path=/; domain=.amazon.co.uk; expires=Mon, 17-Oct-2011 13:50:41 GMT<br />Set-Cookie: session-id-time=2082758401l; path=/; domain=.amazon.co.uk; expires=Tue, 01-Jan-2036 00:00:01 GMT<br />Set-Cookie: session-id=277-7333656-1660356; path=/; domain=.amazon.co.uk; expires=Tue, 01-Jan-2036 00:00:01 GMT<br />
  15. 15.
  16. 16. GET /aan/2009-09-09/static/amazon/iframeproxy-8.html HTTP/1.1<br />Host: www.amazon.co.uk<br />User-Agent:Mozilla/5.0 (Windows NT 6.0; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1<br />Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br />Accept-Language:en-gb,en;q=0.5<br />Accept-Encoding: gzip, deflate<br />Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br />Connection: keep-alive<br />Referer: http://www.amazon.co.uk/<br />Cookie: session-id-time=2082758401l; session-id=277-7333656-1660356<br />
  17. 17. ?<br />
  18. 18. Set-Cookie: skin=noskin; path=/; domain=.amazon.co.uk; <br />Set-Cookie: session-id-time=2082758401l;path=/; domain=.amazon.co.uk; <br />Set-Cookie: session-id=277-7333656-1660356; path=/; domain=.amazon.co.uk; <br />
  19. 19.
  20. 20.
  21. 21. Leituras associadas<br />Web ApplicationArchitecture, Second Edition<br />Cap. 3: “Birth of the Web: HTTP”, pp. 53-56.<br />Esposito. D. (2005). Cookieless ASP.NET [on-line], Microsoft DeveloperNetworkLibrary, http://msdn.microsoft.com/en-us/library/aa479314.aspx<br />Barth, A. (2011). HTTP State Management Mechanism. Request for Comments 6265, ISSN 2070-1721, Internet EngineeringTask Force, http://tools.ietf.org/html/rfc6265<br />

×