Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:56:03
1

PHP Cookies - setcookie

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

Prevent the error loading XML – libxml_use_internal_errors

libxml_use_internal_errors() allows you to disable standard libxml errors and enable user error handling.

Captcha V2 - Free PHP Script

PHP Captcha protection image Version 2, - Requirement(s): PHP Server, GD Library

MySQL Basic Functions

MySQL Basic Functions - select, delete, update..

Imageline

Draws a line between the two given points.

Creating a CAPTCHA with PHP with imagecreate

This tutorial will show you how to create a form with Captcha, Requirement(s): PHP Server, GD Graphics Library

Send This Link PHP Script

A popup form which allows your visitors to send a referral link from your site. It features admin notification and HTML output.

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL

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.

RSS, MySQL & Smarty

Smarty > Publishing MySQL Data in RSS 2.0
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.