Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
Setting the cookie path : setcookie « Cookie Session « PHP
PHP
Cookie Session
setcookie
Setting the cookie path
setcookie(
'short-userid'
,
'AAA'
,0,
'/'
);
Related examples in the same category
1.
PHP 5 setcookie() Parameters
2.
Assigning cookie names according to array index value
3.
Cookie created
4.
Deleting Cookies
5.
Setting a cookie with a domain restriction
6.
Setting a cookie with a path restriction
7.
Setting an expiring cookie
8.
Setting cookie expiration
9.
Setting the cookie domain
10.
Setting the cookie path to a specific directory
11.
Deleting a Cookie Using setcookie()
12.
The cookie expires one day from now
13.
Starting a page with setcookie()
14.
Reading Cookies