Ad block is installed and active. Please support us by disabling it.
HomeMonday, November 20, 2017, 09:15:01
1

PHP Cookies - setcookie

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

Preg_Match - PHP Form Validation

PHP form validation with preg_match

PHP getdate

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

Addslashes - Stripslashes

addslashes — quote string with slashes, stripslashes — un-quotes a quoted string

How to check checkbox checked

Checking if checkbox is checked with jQuery

Random MySQL Query

Random MySQL query, requirement(s): PHP Server, MySQL

PHP Redirect

Header (location) redirect must be processed before any output to the browser.

Syntax highlighting in Smarty

Syntax highlighting for Smarty - Google Code Prettify

Jquery PHP Contact Form

This script allows your visitors to send you an email directly from your website.

GuestBook PHP Script

Allow visitors to leave messages on your site. It features easy install, admin notification, and control panel to remove unwanted entries.

PHP Mail

Sends an email.
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.