PHP Classes

PHP Cookies: Set and get cookie values and other parameters

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-12-10 (14 days ago) RSS 2.0 feedNot enough user ratingsTotal: 88 This week: 9All time: 9,690 This week: 14Up
Version License PHP version Categories
cookies 1.0MIT/X Consortium ...7HTTP, PHP 7
Description Author

This class can set and get cookie values and other parameters.

It provides several functions that can access the PHP $_COOKIE superglobal variable to perform operations on cookie values for the current HTTP request that PHP is handling.

Currently, it can:

- Set the value and other parameters of a cookie with a given name

- Get or set the path and the domain of the current HTTP request

- Set the values of multiple cookie values

- Check if the current request has set a cookie with a given name

- Get the value of a cookie with a given name

- Get the values of multiple cookies

- Delete the value of a cookie with a given name

- Delete multiple cookies

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq <contact>
Classes: 50 packages by
Country: Pakistan Pakistan
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file Cookies.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:88
This week:9
All time:9,690
This week:14Up
For more information send a message to info at phpclasses dot org.