SlideShare a Scribd company logo
PHP - Introduction to PHP Cookies and Sessions
Introduction to PHPIntroduction to PHP
Cookies & SessionsCookies & Sessions
So…So…
Cookies Sessions
Limited storage space Practically unlimited
space
Insecure storage client-
side
Reasonably securely
stored server-side
User controlled No user control
How do ‘Sessions’ work?How do ‘Sessions’ work?
• They are based on assigning each user a unique
number, or session id. Even for extremely heavy use
sites, this number can for all practical purposes can
be regarded as unique.
e.g.
26fe536a534d3c7cde4297abb45e275a
How do ‘Sessions’ work?How do ‘Sessions’ work?
• This session id is stored in a cookie, or passed in the
URL between pages while the user browses.
• The data to be stored (e.g. name, log-in state, etc.)
is stored securely server-side in a PHP superglobal,
and referenced using the session id.
Crucially, sessions areCrucially, sessions are
easyeasy to implement asto implement as PHPPHP
does all the work!does all the work!
Starting or Resuming aStarting or Resuming a
SessionSession
session_start();
PHP does all the work: It looks for a valid session id in
the $_COOKIE or $_GET superglobals – if found it
initializes the data. If none found, a new session id is
created. Note that like setcookie(), this function
must be called before any echoed output to
browser.
Starting or Resuming aStarting or Resuming a
SessionSession
session_start();
When doing anything with sessions, this is always
called first!
Storing Session DataStoring Session Data
• The $_SESSION superglobal array can be used to
store any session data.
e.g.
$_SESSION[‘name’] = $name;
$_SESSION[‘age’] = $age;
Reading Session DataReading Session Data
• Data is simply read back from the $_SESSION
superglobal array.
e.g.
$name = $_SESSION[‘name’];
$age = $_SESSION[‘age’];
Session PropagationSession Propagation
• Sessions need to pass the session id between pages
as a user browses to track the session.
• It can do this in two ways:
o Cookie propagation
o URL propagation
Cookie PropagationCookie Propagation
• A cookie is stored on the users PC
containing the session id.
• It is read in whenever session_start(); is
called to initialize the session.
• Default behaviour is a cookie that expires
when the browser is closed. Cookie
properties can be modified with
session_set_cookie_params if required.
URL PropagationURL Propagation
• The session id is propagated in the URL
(…some_folder/index.php?sid=26fe536a534d3c7cde4297abb45e275a)
• PHP provides a global constant to append the
session id to any internal links, SID.
e.g.
<a href="nextpage.php?<?=SID?>">Next page</a>
Which one..?Which one..?
• The default setup of a PHP server is to use both
methods.
o it checks whether the user has cookies enabled.
o If cookies are on, PHP uses cookie propagation. If cookies are off it uses
URL propagation.
And this means..?And this means..?
• That as developers, we must be aware that sessions
can be propagated through URL, and append the
constant SID to any internal links.
• If sessions are being propagated by cookies, the
constant SID is an empty string, so the session id is
not passed twice.
Destroying a SessionDestroying a Session
Often not required, but if we want to destroy a
session:
// clear all session variables
$_SESSION = array();
// delete the session cookie if there is one
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(),'',time()-42000,'/');
}
// destroy session
session_destroy();
// avoid reusing the SID by redirecting
// back to the same page to regenerate session
header('Location: '.$_SERVER['PHP_SELF']);
Session ExpirySession Expiry
• By default, PHP sessions expire:
o after a certain length of inactivity (default 1440s),
the PHP garbage collection processes deletes
session variables. Important as most sessions will
not be explicitly destroyed.
o if propagated by cookies, default is to set a
cookie that is destroyed when the browser is
closed.
o If URL propagated, session id is lost as soon as
navigate away from the site.
Long-term SessionsLong-term Sessions
• Although it is possible to customize sessions so that
they are maintained after the browser is closed, for
most practical purposes PHP sessions can be
regarded as short-term.
• Long-term session data (e.g. ‘remember me’ boxes)
is usually maintained by explicitly setting and
retrieving cookie data.
Session Hi-jackingSession Hi-jacking
• A security issue: if a malicious user manages to
get hold of an active session id that is not their
own..
e.g.
o user 1 browsing site with cookies disabled (URL
propagation).
o user 1 logs in.
o user 1 sends an interesting link to user 2 by email.. The
URL copy and pasted contains his session id.
o user 2 looks at the link before session id is destroyed,
and ‘hijacks’ user 1’s session.
o user 2 is now logged in as user 1!!
…… rule of thumb …rule of thumb …
If you are truly security conscious you should assume
that a session propagated by URL may be
compromised. Propagation using cookies is more
secure, but still not foolproof..
ThankThank You !!!You !!!
For More Information click below link:
Follow Us on:
http://vibranttechnologies.co.in/php-classes-in-
mumbai.html

More Related Content

What's hot (20)

Chap 4 PHP.pdf
Chap 4 PHP.pdf
HASENSEID
 
Php Ppt
Php Ppt
vsnmurthy
 
Php string function
Php string function
Ravi Bhadauria
 
Node JS Crash Course
Node JS Crash Course
Haim Michael
 
php
php
ajeetjhajharia
 
Introduction to php
Introduction to php
Anjan Banda
 
Express node js
Express node js
Yashprit Singh
 
Java script
Java script
Shyam Khant
 
PHP
PHP
Steve Fort
 
Php mysql
Php mysql
Shehrevar Davierwala
 
Node.js Express
Node.js Express
Eyal Vardi
 
Form Handling using PHP
Form Handling using PHP
Nisa Soomro
 
JavaScript Promises
JavaScript Promises
Derek Willian Stavis
 
Statements and Conditions in PHP
Statements and Conditions in PHP
Maruf Abdullah (Rion)
 
Php
Php
Shagufta shaheen
 
GET and POST in PHP
GET and POST in PHP
Vineet Kumar Saini
 
4.2 PHP Function
4.2 PHP Function
Jalpesh Vasa
 
PHP - Introduction to PHP AJAX
PHP - Introduction to PHP AJAX
Vibrant Technologies & Computers
 
PHP FUNCTIONS
PHP FUNCTIONS
Zeeshan Ahmed
 
Javascript
Javascript
mussawir20
 

Viewers also liked (20)

Php sessions & cookies
Php sessions & cookies
baabtra.com - No. 1 supplier of quality freshers
 
Sessions and cookies
Sessions and cookies
www.netgains.org
 
Cookies and sessions
Cookies and sessions
Lena Petsenchuk
 
Cookie and session
Cookie and session
Aashish Ghale
 
Php ssession - cookies -introduction
Php ssession - cookies -introduction
Programmer Blog
 
PHP Cookies, Sessions and Authentication
PHP Cookies, Sessions and Authentication
Gerard Sychay
 
Introduction to php web programming - sessions and cookies
Introduction to php web programming - sessions and cookies
baabtra.com - No. 1 supplier of quality freshers
 
Cookies PowerPoint
Cookies PowerPoint
emurfield
 
Deliver Files With PHP
Deliver Files With PHP
Thomas Weinert
 
Php Form
Php Form
lotlot
 
Chapter 07 php forms handling
Chapter 07 php forms handling
Dhani Ahmad
 
PHP Files: An Introduction
PHP Files: An Introduction
Jacques Woodcock
 
3 php forms
3 php forms
hello8421
 
Form Processing In Php
Form Processing In Php
Harit Kothari
 
Php database connectivity
Php database connectivity
baabtra.com - No. 1 supplier of quality freshers
 
Pakistan's mountain ranges
Pakistan's mountain ranges
tehseen bukhari
 
Mountains In Pakistan
Mountains In Pakistan
Ayesha Shoukat
 
Plains, plateaus and deserts in pakistan
Plains, plateaus and deserts in pakistan
Aqsa Manzoor
 
Cookies!
Cookies!
kellimccabe
 
Mountains of Pakistan any physiography
Mountains of Pakistan any physiography
GCUF
 
Ad

Similar to PHP - Introduction to PHP Cookies and Sessions (20)

Lecture8 php page control by okello erick
Lecture8 php page control by okello erick
okelloerick
 
4.4 PHP Session
4.4 PHP Session
Jalpesh Vasa
 
Cookies and Session
Cookies and Session
KoraStats
 
Session Management & Cookies In Php
Session Management & Cookies In Php
Harit Kothari
 
Lecture 11 - PHP - Part 5 - CookiesSessions.ppt
Lecture 11 - PHP - Part 5 - CookiesSessions.ppt
SreejithVP7
 
PHP-Cookies-Sessions.pdf
PHP-Cookies-Sessions.pdf
HumphreyOwuor1
 
Lecture 11 - PHP - Part 5 - CookiesSessions.ppt
Lecture 11 - PHP - Part 5 - CookiesSessions.ppt
pondypaiyan
 
FP512 Cookies sessions
FP512 Cookies sessions
Fatin Fatihayah
 
PHP COOKIES AND SESSIONS
PHP COOKIES AND SESSIONS
Degu8
 
PHP SESSIONS & COOKIE.pptx
PHP SESSIONS & COOKIE.pptx
ShitalGhotekar
 
Sessions and cookies in php
Sessions and cookies in php
Pavan b
 
Session,cookies
Session,cookies
rkmourya511
 
season management in php (WT)
season management in php (WT)
kunjan shah
 
Web app development_cookies_sessions_14
Web app development_cookies_sessions_14
Hassen Poreya
 
Sessions in php
Sessions in php
Mudasir Syed
 
Sessions n cookies
Sessions n cookies
baabtra.com - No. 1 supplier of quality freshers
 
lecture 13.pptx
lecture 13.pptx
ITNet
 
4 php-advanced
4 php-advanced
Achchuthan Yogarajah
 
Cookies and sessions
Cookies and sessions
UdaAs PaNchi
 
PHP-07-Cookies-Sessions indepth powerpoint
PHP-07-Cookies-Sessions indepth powerpoint
spadhi2
 
Lecture8 php page control by okello erick
Lecture8 php page control by okello erick
okelloerick
 
Cookies and Session
Cookies and Session
KoraStats
 
Session Management & Cookies In Php
Session Management & Cookies In Php
Harit Kothari
 
Lecture 11 - PHP - Part 5 - CookiesSessions.ppt
Lecture 11 - PHP - Part 5 - CookiesSessions.ppt
SreejithVP7
 
PHP-Cookies-Sessions.pdf
PHP-Cookies-Sessions.pdf
HumphreyOwuor1
 
Lecture 11 - PHP - Part 5 - CookiesSessions.ppt
Lecture 11 - PHP - Part 5 - CookiesSessions.ppt
pondypaiyan
 
PHP COOKIES AND SESSIONS
PHP COOKIES AND SESSIONS
Degu8
 
PHP SESSIONS & COOKIE.pptx
PHP SESSIONS & COOKIE.pptx
ShitalGhotekar
 
Sessions and cookies in php
Sessions and cookies in php
Pavan b
 
season management in php (WT)
season management in php (WT)
kunjan shah
 
Web app development_cookies_sessions_14
Web app development_cookies_sessions_14
Hassen Poreya
 
lecture 13.pptx
lecture 13.pptx
ITNet
 
Cookies and sessions
Cookies and sessions
UdaAs PaNchi
 
PHP-07-Cookies-Sessions indepth powerpoint
PHP-07-Cookies-Sessions indepth powerpoint
spadhi2
 
Ad

More from Vibrant Technologies & Computers (20)

Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5
Vibrant Technologies & Computers
 
SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables
Vibrant Technologies & Computers
 
SQL- Introduction to MySQL
SQL- Introduction to MySQL
Vibrant Technologies & Computers
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database
Vibrant Technologies & Computers
 
ITIL - introduction to ITIL
ITIL - introduction to ITIL
Vibrant Technologies & Computers
 
Salesforce - Introduction to Security & Access
Salesforce - Introduction to Security & Access
Vibrant Technologies & Computers
 
Data ware housing- Introduction to olap .
Data ware housing- Introduction to olap .
Vibrant Technologies & Computers
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.
Vibrant Technologies & Computers
 
Data ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housing
Vibrant Technologies & Computers
 
Salesforce - classification of cloud computing
Salesforce - classification of cloud computing
Vibrant Technologies & Computers
 
Salesforce - cloud computing fundamental
Salesforce - cloud computing fundamental
Vibrant Technologies & Computers
 
SQL- Introduction to PL/SQL
SQL- Introduction to PL/SQL
Vibrant Technologies & Computers
 
SQL- Introduction to advanced sql concepts
SQL- Introduction to advanced sql concepts
Vibrant Technologies & Computers
 
SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data
Vibrant Technologies & Computers
 
SQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set Operations
Vibrant Technologies & Computers
 
Sas - Introduction to designing the data mart
Sas - Introduction to designing the data mart
Vibrant Technologies & Computers
 
Sas - Introduction to working under change management
Sas - Introduction to working under change management
Vibrant Technologies & Computers
 
SAS - overview of SAS
SAS - overview of SAS
Vibrant Technologies & Computers
 
Teradata - Architecture of Teradata
Teradata - Architecture of Teradata
Vibrant Technologies & Computers
 
Teradata - Restoring Data
Teradata - Restoring Data
Vibrant Technologies & Computers
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.
Vibrant Technologies & Computers
 

Recently uploaded (20)

National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
Supporting the NextGen 911 Digital Transformation with FME
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
Data Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
Safe Software
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
Supporting the NextGen 911 Digital Transformation with FME
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
Down the Rabbit Hole – Solving 5 Training Roadblocks
Down the Rabbit Hole – Solving 5 Training Roadblocks
Rustici Software
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
Oracle Cloud and AI Specialization Program
Oracle Cloud and AI Specialization Program
VICTOR MAESTRE RAMIREZ
 
Data Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
Safe Software
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 

PHP - Introduction to PHP Cookies and Sessions

  • 2. Introduction to PHPIntroduction to PHP Cookies & SessionsCookies & Sessions
  • 3. So…So… Cookies Sessions Limited storage space Practically unlimited space Insecure storage client- side Reasonably securely stored server-side User controlled No user control
  • 4. How do ‘Sessions’ work?How do ‘Sessions’ work? • They are based on assigning each user a unique number, or session id. Even for extremely heavy use sites, this number can for all practical purposes can be regarded as unique. e.g. 26fe536a534d3c7cde4297abb45e275a
  • 5. How do ‘Sessions’ work?How do ‘Sessions’ work? • This session id is stored in a cookie, or passed in the URL between pages while the user browses. • The data to be stored (e.g. name, log-in state, etc.) is stored securely server-side in a PHP superglobal, and referenced using the session id.
  • 6. Crucially, sessions areCrucially, sessions are easyeasy to implement asto implement as PHPPHP does all the work!does all the work!
  • 7. Starting or Resuming aStarting or Resuming a SessionSession session_start(); PHP does all the work: It looks for a valid session id in the $_COOKIE or $_GET superglobals – if found it initializes the data. If none found, a new session id is created. Note that like setcookie(), this function must be called before any echoed output to browser.
  • 8. Starting or Resuming aStarting or Resuming a SessionSession session_start(); When doing anything with sessions, this is always called first!
  • 9. Storing Session DataStoring Session Data • The $_SESSION superglobal array can be used to store any session data. e.g. $_SESSION[‘name’] = $name; $_SESSION[‘age’] = $age;
  • 10. Reading Session DataReading Session Data • Data is simply read back from the $_SESSION superglobal array. e.g. $name = $_SESSION[‘name’]; $age = $_SESSION[‘age’];
  • 11. Session PropagationSession Propagation • Sessions need to pass the session id between pages as a user browses to track the session. • It can do this in two ways: o Cookie propagation o URL propagation
  • 12. Cookie PropagationCookie Propagation • A cookie is stored on the users PC containing the session id. • It is read in whenever session_start(); is called to initialize the session. • Default behaviour is a cookie that expires when the browser is closed. Cookie properties can be modified with session_set_cookie_params if required.
  • 13. URL PropagationURL Propagation • The session id is propagated in the URL (…some_folder/index.php?sid=26fe536a534d3c7cde4297abb45e275a) • PHP provides a global constant to append the session id to any internal links, SID. e.g. <a href="nextpage.php?<?=SID?>">Next page</a>
  • 14. Which one..?Which one..? • The default setup of a PHP server is to use both methods. o it checks whether the user has cookies enabled. o If cookies are on, PHP uses cookie propagation. If cookies are off it uses URL propagation.
  • 15. And this means..?And this means..? • That as developers, we must be aware that sessions can be propagated through URL, and append the constant SID to any internal links. • If sessions are being propagated by cookies, the constant SID is an empty string, so the session id is not passed twice.
  • 16. Destroying a SessionDestroying a Session Often not required, but if we want to destroy a session: // clear all session variables $_SESSION = array(); // delete the session cookie if there is one if (isset($_COOKIE[session_name()])) { setcookie(session_name(),'',time()-42000,'/'); } // destroy session session_destroy(); // avoid reusing the SID by redirecting // back to the same page to regenerate session header('Location: '.$_SERVER['PHP_SELF']);
  • 17. Session ExpirySession Expiry • By default, PHP sessions expire: o after a certain length of inactivity (default 1440s), the PHP garbage collection processes deletes session variables. Important as most sessions will not be explicitly destroyed. o if propagated by cookies, default is to set a cookie that is destroyed when the browser is closed. o If URL propagated, session id is lost as soon as navigate away from the site.
  • 18. Long-term SessionsLong-term Sessions • Although it is possible to customize sessions so that they are maintained after the browser is closed, for most practical purposes PHP sessions can be regarded as short-term. • Long-term session data (e.g. ‘remember me’ boxes) is usually maintained by explicitly setting and retrieving cookie data.
  • 19. Session Hi-jackingSession Hi-jacking • A security issue: if a malicious user manages to get hold of an active session id that is not their own.. e.g. o user 1 browsing site with cookies disabled (URL propagation). o user 1 logs in. o user 1 sends an interesting link to user 2 by email.. The URL copy and pasted contains his session id. o user 2 looks at the link before session id is destroyed, and ‘hijacks’ user 1’s session. o user 2 is now logged in as user 1!!
  • 20. …… rule of thumb …rule of thumb … If you are truly security conscious you should assume that a session propagated by URL may be compromised. Propagation using cookies is more secure, but still not foolproof..
  • 21. ThankThank You !!!You !!! For More Information click below link: Follow Us on: http://vibranttechnologies.co.in/php-classes-in- mumbai.html