HomeMonday, July 24, 2017, 22:35:37
1

PHP Cookies - setcookie

Tuesday, February 10, 15, 14:02:45, 3 Yaers Ago Via wain, Hits: 2217
Defines a cookie to be sent along with the rest of the HTTP headers.
Example:
Code:
<?php
setcookie("cookieuser", "username", time()+3600);
setcookie("cookiepass", "password", time()+3600);
print_r ($_COOKIE);
?>


Delete Cookies:
Code:
<?php
setcookie ("cookieuser", "", time() - 3600);
setcookie ("cookiepass", "", time() - 3600);
print_r ($_COOKIE);
?>

Sign In

Sponsor

Related

Upload Image with PHP [Example2]

[Example2] Tutorial - How to upload and resize image with PHP

Adodb Recordcount Example

RecordCount returns the number of rows in the record set.

Advanced Contact Form - PHP Script

Advanced Contact Form with email and form field validation. Features: HTML Output(Response), Captcha Image.

Link Base 1.1. - Free PHP Link Index Script

Manage your links using a MySQL database. Features easy install, user submission, and an admin panel to add, edit and remove categories and links.

Upload Image With PHP

[Example3] Tutorial - How to upload image in php.

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

Syntax highlighting in Smarty

Syntax highlighting for Smarty - Google Code Prettify

PHP form with file upload

Advanced Contact Form with email and form field validation. It allows your visitors to send you an email directly from your website.

MySQL Inner Join

MySQL Inner Join - Creating Dynamic Webpages Using PHP and MySQL, Requirement(s): PHP Server, MySQL

php Array

These functions allow you to interact with and manipulate arrays in various ways. Arrays are essential for storing, managing, and operating on sets of variables.
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.