SlideShare a Scribd company logo
How to create independent session
for each user
Session php
What is session?
What is session?
Codes for session
• // Start the session
session_start();
• // Set session variables
$_SESSION["favcolor"] = "green";
• // destroy the session
session_destroy();
 Create independent session for
each user
To create that we need :
• HTML – “Form login”
• PHP – “session”
 Plan to do that:
Form
My website1 2 Index.php 3
Create
session
Ch_login.php
4
info
Content.php 5
Create
session
Ch_logout.php
 Index.php
 Index.php
 Ch_login.php
 Ch_login.php
 content.php

More Related Content

PPTX
Sessions in php
ODP
Session Management & Cookies In Php
PPTX
Php session 3 Important topics
PPT
season management in php (WT)
PPT
Php - Getting good with session
PPT
Php ssession - cookies -introduction
PPT
PHP - Introduction to PHP Cookies and Sessions
PPT
Lecture8 php page control by okello erick
Sessions in php
Session Management & Cookies In Php
Php session 3 Important topics
season management in php (WT)
Php - Getting good with session
Php ssession - cookies -introduction
PHP - Introduction to PHP Cookies and Sessions
Lecture8 php page control by okello erick

What's hot (20)

PPSX
Php session
PDF
Introduction to php web programming - sessions and cookies
PDF
4.4 PHP Session
PPTX
PHP Cookies and Sessions
PPTX
Cookie and session
PPTX
Sessions and cookies in php
PPT
Cookies and sessions
PPT
PHP - Getting good with cookies
PPTX
Session and Cookies
PPT
php $_GET / $_POST / $_SESSION
PPT
Php Sessoins N Cookies
PPT
PHP Cookies, Sessions and Authentication
PPT
Manish
PPT
PPT
Cookies and sessions
PPTX
Cookies and sessions
PPSX
Sessions and cookies
PPT
Parameter Passing & Session Tracking in PHP
Php session
Introduction to php web programming - sessions and cookies
4.4 PHP Session
PHP Cookies and Sessions
Cookie and session
Sessions and cookies in php
Cookies and sessions
PHP - Getting good with cookies
Session and Cookies
php $_GET / $_POST / $_SESSION
Php Sessoins N Cookies
PHP Cookies, Sessions and Authentication
Manish
Cookies and sessions
Cookies and sessions
Sessions and cookies
Parameter Passing & Session Tracking in PHP
Ad

Viewers also liked (12)

ODP
Session por nieves
PDF
PHP Secure Programming
PPTX
Php string function
PPTX
Noi so hai tac dong den viec ra quyet dinh cua ca nhan
PPTX
Quan ly truyen thong ca nhan full
PDF
Europura citi 02 uv
PPTX
Coconurture
PDF
Anagrama
PPSX
The do’s and don’ts of a presentation main
PPTX
Chapter 8 Jeopardy
PDF
CV_PARTHA_PRATIM_GORAIN_18th_dec_2015
PDF
DPS Software : Case Management Systems
Session por nieves
PHP Secure Programming
Php string function
Noi so hai tac dong den viec ra quyet dinh cua ca nhan
Quan ly truyen thong ca nhan full
Europura citi 02 uv
Coconurture
Anagrama
The do’s and don’ts of a presentation main
Chapter 8 Jeopardy
CV_PARTHA_PRATIM_GORAIN_18th_dec_2015
DPS Software : Case Management Systems
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
KodekX | Application Modernization Development
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Big Data Technologies - Introduction.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Electronic commerce courselecture one. Pdf
NewMind AI Weekly Chronicles - August'25 Week I
Understanding_Digital_Forensics_Presentation.pptx
Empathic Computing: Creating Shared Understanding
Encapsulation_ Review paper, used for researhc scholars
KodekX | Application Modernization Development
Spectral efficient network and resource selection model in 5G networks
Big Data Technologies - Introduction.pptx
Approach and Philosophy of On baking technology
MYSQL Presentation for SQL database connectivity
Unlocking AI with Model Context Protocol (MCP)
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Programs and apps: productivity, graphics, security and other tools
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Advanced methodologies resolving dimensionality complications for autism neur...
sap open course for s4hana steps from ECC to s4
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Electronic commerce courselecture one. Pdf

Session php