Cegonsoft PHP Cookies | Best Software Training Institute

General discussion on PHP
Post Reply
adamricky
Posts: 5
Joined: Wed Jun 22, 2011 1:44 pm

Cegonsoft PHP Cookies | Best Software Training Institute

Post by adamricky » Fri Jun 24, 2011 10:55 am

PHP
This is a computer scripting language, originally designed for producing dynamic web pages. It is for server-side scripting, but can be used from a command line interface or in standalone graphical applications.
Cookie
A cookie is often used to identify a user. It is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.
Create a Cookie
The setcookie() function is used to set a cookie.
Example:
<?php
setcookie("user", "Alex Porter", time()+3600);
?>
Retrieve the Cookie
The PHP $_COOKIE variable is used to retrieve a cookie value.
?php
// Print a cookie
echo $_COOKIE["user"];

// A way to view all cookies
print_r($_COOKIE);
?>
For more details kindly visit:PHP Training
____________________
Cegonsoft

sari2411
Posts: 1
Joined: Wed Jul 15, 2015 12:27 pm

php training in chandigarh

Post by sari2411 » Wed Jul 15, 2015 12:30 pm

I got new and relevant information what I was finding online about php training in Chandigarh from IMeshlab. Thanks for recommendation!!

Post Reply