cookie. support by php

685 views

Published on

Presentation describe php functions for cookie support

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
685
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

cookie. support by php

  1. 1. Язык PHP $_COOKIE Использование cookie в PHP Алексей Бованенко
  2. 2. Введение • Cookie позволяют хранить данные на стороне пользователя
  3. 3. Установка cookie • bool setcookie ( string $name [, string $value [, int $expire [, string $path [, string $domain [, bool $secure [, bool $httponly ]]]]]] )
  4. 4. Пример • Установка cookie • setcookie(‘login’, ‘vasya’, time()+60*60*24*15); • Удаление cookie • setcookie(‘login’, ‘’, time()-60*60*24*15);
  5. 5. Получение данных из cookie • $_COOKIE[‘value_name’]
  6. 6. Конец Спасибо за внимание e-mail: a.bovanenko@gmail.com

×