Enviar búsqueda
Cargar
csmju313 L7
•
Descargar como PPTX, PDF
•
0 recomendaciones
•
447 vistas
Freedom TheLast
Seguir
Tecnología
Vista de diapositivas
Denunciar
Compartir
Vista de diapositivas
Denunciar
Compartir
1 de 29
Descargar ahora
Recomendados
lesson6
lesson6
Kukik Kanoknuan
การเปิด Clipboard
การเปิด Clipboard
Joh Noppadol
Adolphe jean marie mouron
Adolphe jean marie mouron
Andrea Lopez Pulido
csmju313 L6
csmju313 L6
Freedom TheLast
csmju313 L1
csmju313 L1
Freedom TheLast
csmju313 L5
csmju313 L5
Freedom TheLast
csmju313 L4
csmju313 L4
Freedom TheLast
csmju313 L3
csmju313 L3
Freedom TheLast
Recomendados
lesson6
lesson6
Kukik Kanoknuan
การเปิด Clipboard
การเปิด Clipboard
Joh Noppadol
Adolphe jean marie mouron
Adolphe jean marie mouron
Andrea Lopez Pulido
csmju313 L6
csmju313 L6
Freedom TheLast
csmju313 L1
csmju313 L1
Freedom TheLast
csmju313 L5
csmju313 L5
Freedom TheLast
csmju313 L4
csmju313 L4
Freedom TheLast
csmju313 L3
csmju313 L3
Freedom TheLast
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Más contenido relacionado
Destacado
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Destacado
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
csmju313 L7
1.
คณะวิทยาศาสตร์ สาขาวิทยาการคอมพิวเตอร์ มหาวิทยาลัยแม่โจ้
2.
คุกกี้ คือ
Text file ขนาดเล็ก ที่มีขนาดในแต่ละชุดไม่เกิน 4 kB โดยถูกจาเก็บอยู่บนเครื่องคอมพิวเตอร์ด้านฝั่งของไคลเอนต์ หรือผู้ใช้โปรแกรม Browser ภายในคุกกี้แต่ละตัวจะมีส่วนประกอบไปด้วย ชื่อคุกกี้ (Name) ค่าคุกกี้(Value) และวันหมดอายุ(Expiry Date) พร้อมกับข้อมูล เกี่ยวกับHostและ Path
3.
โดยปกติ Cookies
จะถูกกำหนดมำพร้อมกับข้อมูลที่ Web Server ส่งมำให้กับ Client โดยจะอยู่ในส่วนของ HTTP Header เมื่อฝั่ง Client ได้รับ HTTP Header มำ และตรวจสอบพบว่ำมี Cookies ส่งมำด้วยหรือไม่ ถ้ำมี Client จะนำข้อมูลนั้นมำสร้ำง เป็นแฟ้มข้อมูล Cookies เก็บไว้ที่เครื่องของฝั่ง Client เอง ข้อมูล Cookies ที่เก็บไว้ฝั่ง Client นี้เรำสำมำรถเขียน โปรแกรมเพื่อดึงค่ำเหล่ำนี้มำใช้ประโยชน์ได้ ดังจะได้กล่ำว ต่อไป
4.
5.
6.
7.
8.
9.
10.
11.
cookieform.jsp
12.
13.
setcookie.jsp
14.
ต่อ setcookie.jsp
15.
16.
17.
เซสชั่น (Session)
เป็นตัวแปรชนิดหนึ่งที่ถูกสร้ำงขึ้นและเก็บไว้ ที่ Web Server โดยเซสชั่นนี้จะหมดอำยุเมื่อเรำทำกำรปิด บรำวเซอร์ของ Client ตัวลูกข่ำย (Client) จะติดต่อกับ Session โดยอำศัย Session ID ที่ Web Server ส่งมำให้
18.
เริ่มสร้ำงเซสชั่นด้วยฟังก์ชัน session_start() เมื่อใช้คำสั่ง
session_start() แล้วตัว Client จะได้รับ session id เรำสำมำรถดู session id ได้ด้วยคำสั่ง session_id()
19.
สร้ำงตัวแปรเซสชั่น โดยใช้ฟังก์ชั่น
session_register() session_register (ชื่อตัวแปร[, ชื่อตัวแปร...]) $ชื่อตัวแปร = "ค่ำที่กำหนดให้ตัวแปร" ตัวอย่ำง session_register("myname"); //ลงทะเบียนตัวแปร $myname $myname = "สมชำย"
20.
สร้ำงตัวแปรเซสชั่น โดยใช้ตัวแปรเซสชั่น $HTTP_SESSION_VARS $HTTP_SESSION_VARS['ชื่อตัวแปร']
= ค่ำที่ก ำหนด ตัวอย่ำง $HTTP_SESSION_VARS['name']='sompot'; //สร้ำงตัวแปรเซสชั่น name
21.
สร้ำงตัวแปรเซสชั่น โดยใช้ตัวแปรโดยใช้ตัวแปรเซสชั่น $_SESSION $_SESSION['ชื่อตัวแปรเซสชั่น']=
ค่ำที่จะก ำหนด ตัวอย่ำง $_SESSION['name']='sompot'; //สร้ำงตัวแปรเซสชั่น name
22.
กำรยกเลิกตัวแปรเซสชั่นโดยเจำะจงเฉพำะตัวแปรเซสชั่น บำงตัว สำมำรถทำได้โดยใช้คำสั่ง unset($_SESSION['ชื่อตัวแปรเซสชั่น']) session_unregister(ชื่อตัวแปร);
เรำสำมำรถทำลำยเซสชั่นทั้งหมดได้โดยใช้คำสั่ง session_unset(); session_destroy();
23.
24.
25.
LoginSession.jsp
26.
27.
LoginSession2.jsp
Descargar ahora