SlideShare una empresa de Scribd logo
1 de 20
P R E S E N T E D B Y :
D U R L A B H G I R I P U N J E
A M I T K U M A R S I N G
S A M I T K U M A R K A P A T
A S H I F K H A N
Stateless Protocol
HTTP Request & Response Cycle
Cookie, Session
Stateless Protocol
• A protocol which is incapable of remembering the
results and data associated with the transactions it
governs.
• The best - known stateless protocol is the
HYPERTEXT TRANSFER PROTOCOL (HTTP).
Stateful Protocol
• A protocol which is able to remember and store
details of the transactions which it governs.
• A good example of such a protocol is the FILE
TRANSFER PROTOCOL (FTP) which, for example,
remembers the identity of the client that is using it to
DOWNLOAD files.
Stateless Protocol:
Advantage & Disadvantage
 Advantage:
The stateless design simplifies the server design
because there is no need to dynamically allocate
storage to deal with conversations in progress.
 Disadvantage:
A disadvantage is that it may be necessary to include
additional information in every request and this extra
information will need to be interpreted by the server.
Working of Stateless Protocol
The most interesting pieces of information contained in the
request are:
The IP address of you and/or your HTTP proxy
Which document you requested
Which version of which browser you're using
Which page you came from to get here (if you
followed a link)
Your preferred language(s)
COOKIE
What is Cookie?
 It is a piece of text stored by a user's web browser.
 Cookie Types
 By Lifespan
- Session Cookies
- Persistent Cookies
Setting a cookie
Host: www.example.org
browser → server
Content-type: text/html
Set-Cookie: name=value
(content of page)
browser ← server
Host: www.example.org
Cookie: name=value
Accept: */*
browser → server
Set a cookie
setcookie(name [,value [,expire [,path [,domain
[,secure]]]]])
name = cookie name
value = data to store (string)
expire = when the cookie expires. Default is that cookie
expires when browser is closed.
path = Path on the server
domain = Domain at which the cookie is available for.
secure = If cookie should be sent over HTTP connection
only. Default false.
Set-Cookie: name=newvalue; expires=date; path=/; domain=.example.org.
Set-Cookie: RMID=732423sdfs73242; expires=Fri, 31-Dec-2010 23:59:59
GMT; path=/; domain=.example.net
Advantage And Disadvantage of
Cookies
 Advantage
 Acts as your identification card
 It maintain the session between the client and
server
 Page will be displayed quickly
 Disadvantage
 Use as a spyware
 Storage
Some facts of Cookie…
Each cookie on the user’s computer is connected to a
particular domain.
Each cookie be used to store up to 4kB of data.
A maximum of 20 cookies can be stored on a user’s
PC per domain.
Browsers are preprogrammed to allow a total of 300
Cookies, after which automatic deletion based on expiry
date and usage
Session
In computer science, in particular networking, a session is a semi-
permanent interactive information interchange.
It is also known as:-
Dialogue
Conversation or meeting.
A session is between :-
Two or more communicating devices
A computer and user
A session may be implemented as part of protocols and services at the
Application layer
Ex-HTTP Sessions, TELNET remote login sessions
Session layer
A session initiation protocol based internet phone call
Transport layer
A TCP session which is synonyms of TCP connection or established
TCP sockets.
Types of session
Session implemented using software
TCP sessions are typically implemented in software using
multithreading.
A new process or thread is created when the computer establishes or
joins a Session.
The advantage with multiple processes or threads is relaxed
complexity of the software, since each thread is an instance with its
own history and encapsulated variables.
The disadvantage is large overhead in terms of system resources, and
that the session may be interrupted if the system is restarted.
Server side web
sessions
Server-side sessions are handy and efficient, but can become difficult to
handle in conjunction with load-balancing/high-availability systems and
are not usable at all in embedded systems with no storage.
The load-balancing problem can be solved by using shared storage.
A method of using server-side sessions in systems without mass-storage
is to reserve a portion of RAM for storage of session data.
This method is applicable for servers with a limited number of clients
(e.g. router or access point with infrequent or disallowed access to more
than one client at a time).
Client side web sessions
Client-side sessions use cookies and cryptographic techniques to maintain
state without storing as much data on the server.
When presenting a dynamic web page, the server sends the current state data
to the client (web browser) in the form of a cookie.
The client saves the cookie in memory or on disk.
With each successive request, the client sends the cookie back to the server,
and the server uses the data to "remember" the state of the application for that
specific client and generate an appropriate response.
To improve efficiency and allow for more session data, the server may
compress the data before creating the cookie, decompressing it later when the
cookie is returned by the client.
HTTP session
token
A session token is a unique identifier that is generated and sent from
a server to a client to identify the current interaction session.
The client usually stores and sends the token as an HTTP cookie and/or
sends it as a parameter in GET or POST queries.
The reason to use session tokens is that the client only has to handle the
identifier—all session data is stored on the server (usually in a database, to
which the client does not have direct access) linked to that identifier.
Thank You

Más contenido relacionado

La actualidad más candente

Cookies and sessions
Cookies and sessionsCookies and sessions
Cookies and sessionsSukrit Gupta
 
Cookies: HTTP state management mechanism
Cookies: HTTP state management mechanismCookies: HTTP state management mechanism
Cookies: HTTP state management mechanismJivan Nepali
 
HTTP request and response
HTTP request and responseHTTP request and response
HTTP request and responseSahil Agarwal
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScriptAndres Baravalle
 
What is Web-scraping?
What is Web-scraping?What is Web-scraping?
What is Web-scraping?Yu-Chang Ho
 
PHP Cookies and Sessions
PHP Cookies and SessionsPHP Cookies and Sessions
PHP Cookies and SessionsNisa Soomro
 
State management
State managementState management
State managementteach4uin
 
Web Scraping With Python
Web Scraping With PythonWeb Scraping With Python
Web Scraping With PythonRobert Dempsey
 
Web Scraping and Data Extraction Service
Web Scraping and Data Extraction ServiceWeb Scraping and Data Extraction Service
Web Scraping and Data Extraction ServicePromptCloud
 
Cookie replay attack unit wise presentation
Cookie replay attack  unit wise presentationCookie replay attack  unit wise presentation
Cookie replay attack unit wise presentationNilu Desai
 
Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1Gheyath M. Othman
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETRajkumarsoy
 
Presentation on World Wide Web (WWW)
Presentation on World Wide Web (WWW)Presentation on World Wide Web (WWW)
Presentation on World Wide Web (WWW)Mohak Jain
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntaxJayjZens
 
Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)Experts Desk
 

La actualidad más candente (20)

Cookie and session
Cookie and sessionCookie and session
Cookie and session
 
Cookies and sessions
Cookies and sessionsCookies and sessions
Cookies and sessions
 
Cookies: HTTP state management mechanism
Cookies: HTTP state management mechanismCookies: HTTP state management mechanism
Cookies: HTTP state management mechanism
 
Web application architecture
Web application architectureWeb application architecture
Web application architecture
 
HTTP request and response
HTTP request and responseHTTP request and response
HTTP request and response
 
JQuery introduction
JQuery introductionJQuery introduction
JQuery introduction
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
What is Web-scraping?
What is Web-scraping?What is Web-scraping?
What is Web-scraping?
 
PHP Cookies and Sessions
PHP Cookies and SessionsPHP Cookies and Sessions
PHP Cookies and Sessions
 
State management
State managementState management
State management
 
Web Scraping With Python
Web Scraping With PythonWeb Scraping With Python
Web Scraping With Python
 
Web Security
Web SecurityWeb Security
Web Security
 
Web Scraping and Data Extraction Service
Web Scraping and Data Extraction ServiceWeb Scraping and Data Extraction Service
Web Scraping and Data Extraction Service
 
Cookie replay attack unit wise presentation
Cookie replay attack  unit wise presentationCookie replay attack  unit wise presentation
Cookie replay attack unit wise presentation
 
Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Presentation on World Wide Web (WWW)
Presentation on World Wide Web (WWW)Presentation on World Wide Web (WWW)
Presentation on World Wide Web (WWW)
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
 
Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)Operating System - Monitors (Presentation)
Operating System - Monitors (Presentation)
 
Web Scraping Basics
Web Scraping BasicsWeb Scraping Basics
Web Scraping Basics
 

Similar a Cookie

21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMSkoolkampus
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guideSrihari
 
0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdfZani10
 
19_JavaScript - Storage_Cookies-tutorial .pptx
19_JavaScript - Storage_Cookies-tutorial .pptx19_JavaScript - Storage_Cookies-tutorial .pptx
19_JavaScript - Storage_Cookies-tutorial .pptxssuser4a97d3
 
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)nrvalluri
 
introduction to Web system
introduction to Web systemintroduction to Web system
introduction to Web systemhashim102
 
Fundamentals of Web for Non-Developers
Fundamentals of Web for Non-DevelopersFundamentals of Web for Non-Developers
Fundamentals of Web for Non-DevelopersLemi Orhan Ergin
 
session and cookies.ppt
session and cookies.pptsession and cookies.ppt
session and cookies.pptJayaprasanna4
 
Training Webinar: Enterprise application performance with server push technol...
Training Webinar: Enterprise application performance with server push technol...Training Webinar: Enterprise application performance with server push technol...
Training Webinar: Enterprise application performance with server push technol...OutSystems
 
WEB MODULE 5.pdf
WEB MODULE 5.pdfWEB MODULE 5.pdf
WEB MODULE 5.pdfDeepika A B
 
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt20521742
 
Web hosting presentations by hostindia.net
Web hosting presentations by hostindia.netWeb hosting presentations by hostindia.net
Web hosting presentations by hostindia.netHostin Services Pvt Ltd
 
Computer network (10)
Computer network (10)Computer network (10)
Computer network (10)NYversity
 

Similar a Cookie (20)

21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS
 
WWW & HTTP
WWW & HTTPWWW & HTTP
WWW & HTTP
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guide
 
0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf
 
HTTP Basics
HTTP BasicsHTTP Basics
HTTP Basics
 
19_JavaScript - Storage_Cookies-tutorial .pptx
19_JavaScript - Storage_Cookies-tutorial .pptx19_JavaScript - Storage_Cookies-tutorial .pptx
19_JavaScript - Storage_Cookies-tutorial .pptx
 
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
446-FUNDAMENTALS OF WEB FOR NON DEVELOPERS (Useful-Knowledge)
 
introduction to Web system
introduction to Web systemintroduction to Web system
introduction to Web system
 
Fundamentals of Web for Non-Developers
Fundamentals of Web for Non-DevelopersFundamentals of Web for Non-Developers
Fundamentals of Web for Non-Developers
 
session and cookies.ppt
session and cookies.pptsession and cookies.ppt
session and cookies.ppt
 
Chapter 3-Processes.ppt
Chapter 3-Processes.pptChapter 3-Processes.ppt
Chapter 3-Processes.ppt
 
Training Webinar: Enterprise application performance with server push technol...
Training Webinar: Enterprise application performance with server push technol...Training Webinar: Enterprise application performance with server push technol...
Training Webinar: Enterprise application performance with server push technol...
 
WEB MODULE 5.pdf
WEB MODULE 5.pdfWEB MODULE 5.pdf
WEB MODULE 5.pdf
 
Session and cookies ,get and post methods
Session and cookies ,get and post methodsSession and cookies ,get and post methods
Session and cookies ,get and post methods
 
WEB Mod5@AzDOCUMENTS.in.pdf
WEB Mod5@AzDOCUMENTS.in.pdfWEB Mod5@AzDOCUMENTS.in.pdf
WEB Mod5@AzDOCUMENTS.in.pdf
 
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
 
Web hosting presentations by hostindia.net
Web hosting presentations by hostindia.netWeb hosting presentations by hostindia.net
Web hosting presentations by hostindia.net
 
Computer network (10)
Computer network (10)Computer network (10)
Computer network (10)
 
IPCOM000242565D
IPCOM000242565DIPCOM000242565D
IPCOM000242565D
 
World Wide Web(WWW)
World Wide Web(WWW)World Wide Web(WWW)
World Wide Web(WWW)
 

Más de Samit Kumar Kapat (20)

You are always on my mind
You are always on my mindYou are always on my mind
You are always on my mind
 
Gems
GemsGems
Gems
 
The story of the unemployed
The story of the unemployedThe story of the unemployed
The story of the unemployed
 
Gita in 16 beautiful slides
Gita in 16 beautiful slidesGita in 16 beautiful slides
Gita in 16 beautiful slides
 
Birds' high fashion_show___
Birds' high fashion_show___Birds' high fashion_show___
Birds' high fashion_show___
 
24 truly terrific things.pps
24 truly terrific things.pps24 truly terrific things.pps
24 truly terrific things.pps
 
The story of eagle
The story of eagleThe story of eagle
The story of eagle
 
Honey thewondermedicine
Honey thewondermedicineHoney thewondermedicine
Honey thewondermedicine
 
Heart attack1
Heart attack1Heart attack1
Heart attack1
 
Life always want fight china girl
Life always want fight    china girlLife always want fight    china girl
Life always want fight china girl
 
The art of_being_well.....
The art of_being_well.....The art of_being_well.....
The art of_being_well.....
 
Tantratotem
TantratotemTantratotem
Tantratotem
 
G 2 economic_aspect
G 2 economic_aspectG 2 economic_aspect
G 2 economic_aspect
 
Economic aspects of india 2020
Economic aspects of india 2020Economic aspects of india 2020
Economic aspects of india 2020
 
Futuregroup
FuturegroupFuturegroup
Futuregroup
 
Managing self orientation work shop1
Managing self orientation work shop1Managing self orientation work shop1
Managing self orientation work shop1
 
Voted best email
Voted best emailVoted best email
Voted best email
 
The ant
The antThe ant
The ant
 
Most wanted
Most wantedMost wanted
Most wanted
 
Thoughts to live & love by b
Thoughts to live & love by bThoughts to live & love by b
Thoughts to live & love by b
 

Último

Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Último (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 

Cookie

  • 1. P R E S E N T E D B Y : D U R L A B H G I R I P U N J E A M I T K U M A R S I N G S A M I T K U M A R K A P A T A S H I F K H A N Stateless Protocol HTTP Request & Response Cycle Cookie, Session
  • 2. Stateless Protocol • A protocol which is incapable of remembering the results and data associated with the transactions it governs. • The best - known stateless protocol is the HYPERTEXT TRANSFER PROTOCOL (HTTP).
  • 3. Stateful Protocol • A protocol which is able to remember and store details of the transactions which it governs. • A good example of such a protocol is the FILE TRANSFER PROTOCOL (FTP) which, for example, remembers the identity of the client that is using it to DOWNLOAD files.
  • 4. Stateless Protocol: Advantage & Disadvantage  Advantage: The stateless design simplifies the server design because there is no need to dynamically allocate storage to deal with conversations in progress.  Disadvantage: A disadvantage is that it may be necessary to include additional information in every request and this extra information will need to be interpreted by the server.
  • 6.
  • 7. The most interesting pieces of information contained in the request are: The IP address of you and/or your HTTP proxy Which document you requested Which version of which browser you're using Which page you came from to get here (if you followed a link) Your preferred language(s)
  • 8.
  • 9. COOKIE What is Cookie?  It is a piece of text stored by a user's web browser.  Cookie Types  By Lifespan - Session Cookies - Persistent Cookies
  • 10. Setting a cookie Host: www.example.org browser → server Content-type: text/html Set-Cookie: name=value (content of page) browser ← server Host: www.example.org Cookie: name=value Accept: */* browser → server
  • 11. Set a cookie setcookie(name [,value [,expire [,path [,domain [,secure]]]]]) name = cookie name value = data to store (string) expire = when the cookie expires. Default is that cookie expires when browser is closed. path = Path on the server domain = Domain at which the cookie is available for. secure = If cookie should be sent over HTTP connection only. Default false. Set-Cookie: name=newvalue; expires=date; path=/; domain=.example.org. Set-Cookie: RMID=732423sdfs73242; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; domain=.example.net
  • 12. Advantage And Disadvantage of Cookies  Advantage  Acts as your identification card  It maintain the session between the client and server  Page will be displayed quickly  Disadvantage  Use as a spyware  Storage
  • 13. Some facts of Cookie… Each cookie on the user’s computer is connected to a particular domain. Each cookie be used to store up to 4kB of data. A maximum of 20 cookies can be stored on a user’s PC per domain. Browsers are preprogrammed to allow a total of 300 Cookies, after which automatic deletion based on expiry date and usage
  • 14. Session In computer science, in particular networking, a session is a semi- permanent interactive information interchange. It is also known as:- Dialogue Conversation or meeting. A session is between :- Two or more communicating devices A computer and user
  • 15. A session may be implemented as part of protocols and services at the Application layer Ex-HTTP Sessions, TELNET remote login sessions Session layer A session initiation protocol based internet phone call Transport layer A TCP session which is synonyms of TCP connection or established TCP sockets.
  • 16. Types of session Session implemented using software TCP sessions are typically implemented in software using multithreading. A new process or thread is created when the computer establishes or joins a Session. The advantage with multiple processes or threads is relaxed complexity of the software, since each thread is an instance with its own history and encapsulated variables. The disadvantage is large overhead in terms of system resources, and that the session may be interrupted if the system is restarted.
  • 17. Server side web sessions Server-side sessions are handy and efficient, but can become difficult to handle in conjunction with load-balancing/high-availability systems and are not usable at all in embedded systems with no storage. The load-balancing problem can be solved by using shared storage. A method of using server-side sessions in systems without mass-storage is to reserve a portion of RAM for storage of session data. This method is applicable for servers with a limited number of clients (e.g. router or access point with infrequent or disallowed access to more than one client at a time).
  • 18. Client side web sessions Client-side sessions use cookies and cryptographic techniques to maintain state without storing as much data on the server. When presenting a dynamic web page, the server sends the current state data to the client (web browser) in the form of a cookie. The client saves the cookie in memory or on disk. With each successive request, the client sends the cookie back to the server, and the server uses the data to "remember" the state of the application for that specific client and generate an appropriate response. To improve efficiency and allow for more session data, the server may compress the data before creating the cookie, decompressing it later when the cookie is returned by the client.
  • 19. HTTP session token A session token is a unique identifier that is generated and sent from a server to a client to identify the current interaction session. The client usually stores and sends the token as an HTTP cookie and/or sends it as a parameter in GET or POST queries. The reason to use session tokens is that the client only has to handle the identifier—all session data is stored on the server (usually in a database, to which the client does not have direct access) linked to that identifier.