SlideShare a Scribd company logo
Cookie testing
What is Cookie?
Cookie is small information stored in text file on user’s hard drive by
web server. This information is later used by web browser to retrieve
information from that machine. Generally cookie contains personalized
user data or information that is used to communicate between different
web pages.
Cookie Working..?
Cookies are nothing but the user’s identity and used to track
where the user navigated throughout the web site pages. The
communication between web browser and web server.
There are two types of HTTP protocol.
• Stateless Protocol
Stateless HTTP protocol does not keep any record of previously
accessed web page history
• Stateful Protocol
Stateful HTTP protocol do keep some history of previous web browser
and web server interactions and this protocol is used by cookies to
maintain the user interactions.
HTTP Protocol
Cookie Types
• Session cookie
A session cookie only lasts for the duration of users using the
website. A web browser normally deletes session cookies when it
quits.
• Persistent cookie
A persistent cookiewill outlast user sessions. If a persistent cookie
has its Max-Age set to 1 year
• Secure cookie
A secure cookie is only used when a browser is visiting a server via
HTTPS, ensuring that the cookie is always encrypted when transmitting
from client to server.
Cookie Types
• Http Only cookie
The Http Only cookie is supported by most modern browsers. On a
supported browser, an Http Only session cookie will be used only when
transmitting HTTP
• Zombie cookie
A zombie cookie is any cookie that is automatically recreated after a
user has deleted
• Third-party cookie
Third-party cookies are cookies being set with different domains than
the one shown on the address bar
Cookie Code
Here is one example of the code that is used to write cookie and can be
placed inside any HTML page:
Set-Cookie: NAME=VALUE; expires=DATE; path=PATH;
domain=DOMAIN_NAME:-
When user visits the same page or domain later time this cookie is read
from disk and used to identify the second visit of the same user on that
domain.
Application of Cookies
• Implement shopping cart
Cookies are used for maintaining online ordering system. Cookies
remember what user wants to buy. What if user adds some products in
their shopping cart and if due to some reason user don’t want to buy
those products this time and closes the browser window? When next time
same user visits the purchase page he can see all the products he added
in shopping cart in his last visit.
• User tracking
To track number of unique visitors online at particular time.
• Marketing
Some companies use cookies to display advertisements on user
machines. Cookies control these advertisements. When and which
advertisement should be shown? All these things can be maintained
using cookies.
• Cookies can store visitor preferences.
This is a method used by portal websites so their visitors can customize
their portal page.
Application of Cookies
Application of Cookies
• If you have more than one site, Cookies can track visitors
going from site to site.
The Page is retrieved from one Page dispensing domain (even when loading a page
on a different site),cookies maintain a record of visitors visited on multiple sites
• Personalized sites:
When user visits certain pages they are asked which pages they don’t want to visit or
display. User options are get stored in cookie and till the user is online, those pages
are not shown to him.
Drawback of Cookies
• Inaccurate identification
If more than one browser is used on a computer, each usually has a
separate storage area for cookies. Hence cookies do not identify a
person
• Disabled
if user has disabled the cookies completely then site containing
cookie will be completely disabled and can not perform any operation
resulting in loss of site traffic.
• Security issues
Some times users personal information is stored in cookies and if
someone hack the cookie then hacker can get access to your personal
information.
Test Case For Cookie Testing
 Stored in encrypted format.
 No overuse of cookies on your site under test.
 Disable the cookies.
 Accepts/Reject some cookies
 Delete cookie
 Cookie Testing on Multiple browsers
 Cookies to maintain the logging state of any user
Cookie testing

More Related Content

PPT
PPTX
Session tracking in servlets
PPTX
Firewall and It's Types
PDF
CS9222 ADVANCED OPERATING SYSTEMS
PDF
Virtualization security and threat
PPSX
Sessions and cookies
PPS
Security testing
PPTX
Security testing fundamentals
Session tracking in servlets
Firewall and It's Types
CS9222 ADVANCED OPERATING SYSTEMS
Virtualization security and threat
Sessions and cookies
Security testing
Security testing fundamentals

What's hot (20)

PPTX
Online Quiz System Project Report ppt
PPTX
Cross Site Scripting ( XSS)
PPT
Intrusion detection system ppt
ODP
Apache ppt
PPTX
Client & server side scripting
PPS
PDF
Asp.net state management
PPTX
CSRF Attack and Its Prevention technique in ASP.NET MVC
PPTX
Java exception handling
PPTX
System testing
PPTX
Software quality assurance
PPTX
Introduction to Web Application Security Principles
ODP
Defects in software testing
PDF
Cloud Computing and Service oriented Architecture
PPTX
Project report on online examination system
PPTX
Penetration testing reporting and methodology
PPTX
VIRTUAL MEMORY
PPTX
Software and hardware issues related to technology
PPTX
Distributed Objects and Remote Invocation
PPSX
Desktop and Server Security
Online Quiz System Project Report ppt
Cross Site Scripting ( XSS)
Intrusion detection system ppt
Apache ppt
Client & server side scripting
Asp.net state management
CSRF Attack and Its Prevention technique in ASP.NET MVC
Java exception handling
System testing
Software quality assurance
Introduction to Web Application Security Principles
Defects in software testing
Cloud Computing and Service oriented Architecture
Project report on online examination system
Penetration testing reporting and methodology
VIRTUAL MEMORY
Software and hardware issues related to technology
Distributed Objects and Remote Invocation
Desktop and Server Security
Ad

Viewers also liked (13)

PPTX
Cookies testing
PDF
How Autodesk creates better digital experiences with UserTesting
PDF
CORS and (in)security
PPT
Breaking The Cross Domain Barrier
PDF
Introduction to Unit Testing with PHPUnit
PDF
4 Steps Toward Scientific A/B Testing
PDF
Cookies and browser exploits
PDF
Cross site calls with javascript - the right way with CORS
PPT
Experimental Design
PPTX
Web Security - Cookies, Domains and CORS
PPTX
PDF
Cross Origin Resource Sharing
PPTX
Ppt on unemployment
Cookies testing
How Autodesk creates better digital experiences with UserTesting
CORS and (in)security
Breaking The Cross Domain Barrier
Introduction to Unit Testing with PHPUnit
4 Steps Toward Scientific A/B Testing
Cookies and browser exploits
Cross site calls with javascript - the right way with CORS
Experimental Design
Web Security - Cookies, Domains and CORS
Cross Origin Resource Sharing
Ppt on unemployment
Ad

Similar to Cookie testing (20)

PPTX
Internet Cookies
PPTX
Cookies: HTTP state management mechanism
PPTX
Cookies and sessions
PPTX
Cookies
PPTX
Cookies: A brief Introduction
PPT
Presentation on Internet Cookies
PPTX
Cookies
PPT
Cookies and sessions
PPT
Electronic computer cookies
PPTX
Ch4(saving state with cookies and query strings)
PPT
Internet cookies
PPTX
19_JavaScript - Storage_Cookies_students.pptx
PDF
Cookie replay attack unit wise presentation
PPTX
Advance java session 7
PPTX
19_JavaScript - Storage_Cookies-tutorial .pptx
PPTX
Cookies & log files
PPTX
Cookies & log files
PPTX
Carla Ollé Vera and Aida Pooladian - Cookies and privacy: What do they do wit...
PPTX
Enterprise java unit-2_chapter-2
Internet Cookies
Cookies: HTTP state management mechanism
Cookies and sessions
Cookies
Cookies: A brief Introduction
Presentation on Internet Cookies
Cookies
Cookies and sessions
Electronic computer cookies
Ch4(saving state with cookies and query strings)
Internet cookies
19_JavaScript - Storage_Cookies_students.pptx
Cookie replay attack unit wise presentation
Advance java session 7
19_JavaScript - Storage_Cookies-tutorial .pptx
Cookies & log files
Cookies & log files
Carla Ollé Vera and Aida Pooladian - Cookies and privacy: What do they do wit...
Enterprise java unit-2_chapter-2

More from BugRaptors (20)

PPTX
Performance Testing - A Catalyst In Software Testing Landscape
PDF
13 Things To Keep In Mind For Enhanced Mobile App UI/UX Design
PPTX
Why Companies Need to Leverage ERP Testing Services?
PPTX
BFSI Testing Solutions - To Streamline BFSI Sector
PPTX
Media Streaming App Testing - Knowing The Significance
PPTX
Manual Testing - Developing A Quick Perspective
PDF
Regression Testing - An Overview
PDF
Cloud Testing - Reinforcing Cloud Technology
PPTX
Importance of Performance Testing.pptx
PDF
Media & Entertainment Testing Services –BugRaptors
PPTX
Usability Testing - Connect With Target Audience With Perfect UX
PDF
Tips To Follow For A Simple QA Process
PDF
CRM Testing Services - Ensure Smooth Functioning of Complex CRM Workflows
PPTX
Test Automation - Everything You Need To Know
PPTX
Stress testing ERP frameworks
PDF
Top 10 Automation Testing Tools
PPTX
Software Testing Trends For 2021
PDF
Banking App Testing - To Evaluate Performance
PDF
Test Automation Trends For 2021
PPTX
ERP Testing Strategy For Large Scale Organizations
Performance Testing - A Catalyst In Software Testing Landscape
13 Things To Keep In Mind For Enhanced Mobile App UI/UX Design
Why Companies Need to Leverage ERP Testing Services?
BFSI Testing Solutions - To Streamline BFSI Sector
Media Streaming App Testing - Knowing The Significance
Manual Testing - Developing A Quick Perspective
Regression Testing - An Overview
Cloud Testing - Reinforcing Cloud Technology
Importance of Performance Testing.pptx
Media & Entertainment Testing Services –BugRaptors
Usability Testing - Connect With Target Audience With Perfect UX
Tips To Follow For A Simple QA Process
CRM Testing Services - Ensure Smooth Functioning of Complex CRM Workflows
Test Automation - Everything You Need To Know
Stress testing ERP frameworks
Top 10 Automation Testing Tools
Software Testing Trends For 2021
Banking App Testing - To Evaluate Performance
Test Automation Trends For 2021
ERP Testing Strategy For Large Scale Organizations

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
KodekX | Application Modernization Development
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KodekX | Application Modernization Development
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
“AI and Expert System Decision Support & Business Intelligence Systems”
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
Network Security Unit 5.pdf for BCA BBA.
Machine learning based COVID-19 study performance prediction
Digital-Transformation-Roadmap-for-Companies.pptx
Electronic commerce courselecture one. Pdf
Unlocking AI with Model Context Protocol (MCP)
The Rise and Fall of 3GPP – Time for a Sabbatical?
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Weekly Chronicles - August'25 Week I

Cookie testing

  • 2. What is Cookie? Cookie is small information stored in text file on user’s hard drive by web server. This information is later used by web browser to retrieve information from that machine. Generally cookie contains personalized user data or information that is used to communicate between different web pages.
  • 3. Cookie Working..? Cookies are nothing but the user’s identity and used to track where the user navigated throughout the web site pages. The communication between web browser and web server.
  • 4. There are two types of HTTP protocol. • Stateless Protocol Stateless HTTP protocol does not keep any record of previously accessed web page history • Stateful Protocol Stateful HTTP protocol do keep some history of previous web browser and web server interactions and this protocol is used by cookies to maintain the user interactions. HTTP Protocol
  • 5. Cookie Types • Session cookie A session cookie only lasts for the duration of users using the website. A web browser normally deletes session cookies when it quits. • Persistent cookie A persistent cookiewill outlast user sessions. If a persistent cookie has its Max-Age set to 1 year • Secure cookie A secure cookie is only used when a browser is visiting a server via HTTPS, ensuring that the cookie is always encrypted when transmitting from client to server.
  • 6. Cookie Types • Http Only cookie The Http Only cookie is supported by most modern browsers. On a supported browser, an Http Only session cookie will be used only when transmitting HTTP • Zombie cookie A zombie cookie is any cookie that is automatically recreated after a user has deleted • Third-party cookie Third-party cookies are cookies being set with different domains than the one shown on the address bar
  • 7. Cookie Code Here is one example of the code that is used to write cookie and can be placed inside any HTML page: Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME:- When user visits the same page or domain later time this cookie is read from disk and used to identify the second visit of the same user on that domain.
  • 8. Application of Cookies • Implement shopping cart Cookies are used for maintaining online ordering system. Cookies remember what user wants to buy. What if user adds some products in their shopping cart and if due to some reason user don’t want to buy those products this time and closes the browser window? When next time same user visits the purchase page he can see all the products he added in shopping cart in his last visit. • User tracking To track number of unique visitors online at particular time.
  • 9. • Marketing Some companies use cookies to display advertisements on user machines. Cookies control these advertisements. When and which advertisement should be shown? All these things can be maintained using cookies. • Cookies can store visitor preferences. This is a method used by portal websites so their visitors can customize their portal page. Application of Cookies
  • 10. Application of Cookies • If you have more than one site, Cookies can track visitors going from site to site. The Page is retrieved from one Page dispensing domain (even when loading a page on a different site),cookies maintain a record of visitors visited on multiple sites • Personalized sites: When user visits certain pages they are asked which pages they don’t want to visit or display. User options are get stored in cookie and till the user is online, those pages are not shown to him.
  • 11. Drawback of Cookies • Inaccurate identification If more than one browser is used on a computer, each usually has a separate storage area for cookies. Hence cookies do not identify a person • Disabled if user has disabled the cookies completely then site containing cookie will be completely disabled and can not perform any operation resulting in loss of site traffic. • Security issues Some times users personal information is stored in cookies and if someone hack the cookie then hacker can get access to your personal information.
  • 12. Test Case For Cookie Testing  Stored in encrypted format.  No overuse of cookies on your site under test.  Disable the cookies.  Accepts/Reject some cookies  Delete cookie  Cookie Testing on Multiple browsers  Cookies to maintain the logging state of any user