HomeSunday, June 24, 2018, 01:37:58
1

PHP Cookies - setcookie

Tuesday, February 10, 15, 14:02:45, 3 Yaers Ago Via wain, Hits: 6420
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

Smarty Paginate Example - Smarty Pagination with PHP

Smarty Paginate Example, Smarty Pagination with PHP. SmartyPaginate: a class/plugin for data set pagination within the Smarty template environment

PHP getdate

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given.

How to check checkbox checked

Checking if checkbox is checked with jQuery

Upload Attachment - PHP Tutorial

Upload attachment with PHP example, Requirement(s): PHP server

Preg_Match - PHP Form Validation

PHP form validation with preg_match

MySQL Tutorials

MySQL tutorials, MySQL training, learn MySQL, MySQL Tutorial with practical examples.

PHP Form Basic

PHP Form - PHP form basic, Requirement(s): PHP Server

Email to Friend - PHP Script

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

PHP Str_replace - PHP Tutorial

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.

HTML Button Generator

This script will allow your visitors to create HTML Buttons online. To use the "html button generator" script completely free , the "powered by" link at the bottom of the pages must stay intact.
About Author

wain

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