14-мавзу. Cookie, сеанс, FTP и технологиялари

Slides:



Advertisements
Similar presentations
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
Advertisements

Hypertext Transfer Protocol Kyle Roth Mark Hoover.
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
Internet and World Wide Web Technologies E-commerce Book Chapter 3 pages Concentrate on
Layer 7- Application Layer
How does it work?. What is the Internet? Computer Protocols TCP/IP: Transmission Control Protocol/Internet Protocol HTTP: Hypertext Transfer Protocol.
Introduction to Web Pages. Slide 2 Lecture Overview Evolution of the Internet and Web Web Protocols.
Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP 2-1 Lecture 5 Application Layer.
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
Chapter 10 Maintaining State Information Using Cookies.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
Mail Server Setup MAIL SERVER SETUP.
Development of Web Applications - Introduction Teppo Räisänen Principal Lecturer Oulu University of Applied Sciences School of Business and Information.
Human-Computer Interface Course 5. ISPs and Internet connection.
Lesson 24. Protocols and the OSI Model. Objectives At the end of this Presentation, you will be able to:
Internet-Based Client Access
Syllabus outcomes Describes and applies problem-solving processes when creating solutions Designs, produces and evaluates appropriate solutions.
 TCP/IP is the communication protocol for the Internet  TCP/IP defines how electronic devices should be connected to the Internet, and how data should.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Internet Overview Part II Mrs. Wilson Internet Basics & WAY Beyond!
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
Web application architecture
CCNA1 v3 Module 11 v3 CCNA 1 Module 11 JEOPARDY S Dow.
E-Business William R. Mussatto CyberStrategies, Inc. 12/2/2000.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Internet Protocol B Bhupendra Ratha, Lecturer School of Library and Information Science Devi Ahilya University, Indore
1 Chapter 9 – Cookies, Sessions, FTP, and More spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science.
Concepts  messages are passed through the internet by using a protocol called simple mail transfer protocol.  The incoming messages are.
The Web and Web Services Jim Graham NR 621 Spring 2009.
TCP/IP (Transmission Control Protocol / Internet Protocol)
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
4343 X2 – Outline The Domain Name System The Web.
 A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests.
Application of the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
Computer Network Architecture Lecture 6: OSI Model Layers Examples 1 20/12/2012.
TCP/IP Protocol Suite ©Richard L. Goldman September 25, 2002.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Unit-6 Handling Sessions and Cookies. Concept of Session Session values are store in server side not in user’s machine. A session is available as long.
Web Search Module 6 INST 734 Doug Oard. Agenda  The Web Crawling Web search.
Website Design and Construction Services and Standards.
By: Derek Ton & Alex Pappas.  Most frequently used internet service that you will manage as network administrator.  You need to understand how they.
 Introduction  Aim  Tools  Methodology  System architecture  Screenshot.
APPLICATION LAYER BY, Parthasarathy.g.
Data communication and Networks
Application layer tcp/ip
Instructor Materials Chapter 5 Providing Network Services
Development of Web Applications - Introduction
Web Development Web Servers.
v3 JEOPARDY CCNA 1 Module 11 CCNA1 v3 Module 11 Galo Valencia
Hypertext Transport Protocol
Some bits on how it works
Protocols and networks in the TCP/IP model initially.
Networking for Home and Small Businesses – Chapter 6
Working at a Small-to-Medium Business or ISP – Chapter 7
Implementing Cookies in PHP
Networking for Home and Small Businesses – Chapter 6
Working at a Small-to-Medium Business or ISP – Chapter 7
Simple Mail Transfer Protocol
Working at a Small-to-Medium Business or ISP – Chapter 7
لایه ی کاربرد مظفر بگ محمدی 2: Application Layer.
Protocols 2 Key Revision Points.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
INTERNET APPLICATIONS
TCP/IP Protocol Suite: Part 2, Application Layer
Networking for Home and Small Businesses – Chapter 6
Computer Networks Protocols
Presentation transcript:

14-мавзу. Cookie, сеанс, FTP и e-mail технологиялари

Cookie ни ўрнатиш Cookie — клиент компьютерида сақланувчи ва у ҳар сафар серверга мурожаат қилаётганда web-серверга юбориладиган матн сатридир. Шу тариқа маълумотлар турли скриптлар аро формалар ёки URL адресларсиз узатилиши мумкин. Cookie қийматини ўрнатиш учун қуйидаги синтаксисдан иборат бўлган setcookie функциясидан фойдаланилади:

bool setcookie (string name [, string value [, int expire [, string path [, string domain [, bool securej ]]]]) Функция клиент компьютерида сақланувчи cookie ларни тасниф этади. Қуйида ушбу функция параметрларининг таснифи кетирилган: name - Cookie нинг номи. value - Cookie нинг қиймати. expire - Cookie нинг амал қилиш муддати. Агар у берилса, у тугагач cookie ўчириб ташланади. Агар кўрсатилмаса, cookie браузер ойнаси ёпилгандан сўнг ўчириб ташланади path - Сервердаги cookie га рухсат этилган адрес. domain - cookie га рухсат этилган домен. secure - HTTPS протокол орқали боғланишда cookie нинг ҳавфсизлик белгиси.

Cookie ни ўқиш cookie га рухсатни олиш учун махсус $_COOKIE суперглобал массивидан фойдаланилади. Массивнинг қиймати сифатида олдин ишлатилган cookie номи олинади. Массив одатда скрипт юклана-ётган вақтда $_GET, $_POST ва $_REQUEST массивлари билан автоматик тарзда тўлдирилади

Мисол: <HTML> <HEAD> <TITLE> Cookie нинг қийматини ўқиш</TITLE></HEAD> <BODY> <CENTER> <Н1> Cookie нинг қийматини ўқиш </Hl> Cookie нинг қиймати: <?php if (isset ($_COOKIE ['message'])) { echo ‘Cookie нинг қиймати:’ . $_COOKIE ['message' ] ; } else { echo 'Cookie ўрнатилмаган' ; } ?> </CENTER;. <BODY> </HTML>

FTP 1. FTP - File Transfer Protocol (файлларни алмашиш протоколи); тармоқ орқали (хусусан Интернет) файлларни узатиш протоколи. Буни бир компьютердан бошкасига файл нусхасини кўчириш каби тушуниш мумкин. 2. FTP Server - бу файлни жунатилиши сўровини кутувчи компьютер ёки сервер. 3. FTP Client - бу FTP серверга сўров жўнатувчи компьютер. Сўров текшируви ёки тасдиқланишидан сўнг FTP клиент компьютери маълумотларни серверга юклаши ёки сервердан юклаб олиши мумкин.

4. Аноним FTP - ушбу серверга FTP клиент компьютери орқали авторизациядан ўтмасдан боғланиши мумкин. Бундай имкониятни бир нечта веб сайтларда кўришимиз мумкин, қайсики рўйхатдан ўтмасдан маълум файлларни юклаб олиш имкониятини беради. 5. FTP Host - ушбу хизмат FTP сайт сифатида, яъни сайтда рўйхатдан ўтиб, сайтда келтирилган маълумотлар файлларини юклаб олиш имкониятига эга бўлиш имкониятини берувчи компьютер. Бу фойдаланувчилар сони чекланган пуллик хизмат. 6. FTP сайт - FTP хост компьютери тасарруфидаги фойдаланувчи логин пароли талаб қилинувчи веб саҳифа. Хост серверда бир нечта веб-саҳифа жойланиши мумкин, бунда ҳар бир сайт учун алоҳида фойдаланувчи авторизацияси мавжуд. 7. FTP Proxy - FTP Proxy бу шунақа сервер компьютерки, бунда сўров FTP серверга жўнатилади, ушбу сўров прокси орқали ўтиб, кейин зарур манзилга йўналтирилади.

E-mail Бу хизмат интернет тизими орқали ўзаро почта хабарлари алмашинуви усулидир. Бундай тизим оралиқ сақланиш методи асосида йўлга қўйилган. Замонавий интернет протоколлар хабарлар жўнатиш иконияти бўйича юқори даражага кўтарилди. Почта жўнатишнинг энг кенг тарқалган протоколи SMTP (Simple Mail Transport Protocol) ҳисобланади. Почтани қабул қилиш почта протоколи POP (Post Office Protocol), ёки Интернет хабарларини қабул қилувчи протокол IMAP (Internet Message Access Protocol) дан фойдаланилади.