Site Cloner PHP Script
Bargain Hunter PHP Script
Job Hunter PHP Script
Site Login and Access Control PHP Script

Set Cookie PHP

Setting cookies with PHP is a decent method to keep a way to identify a user between pages. For example, if you set a cookie on a Joomla component and checked to see the cookie in another page, you could do an if statement to make sure the cookie was in the browser before the user could view the page.

To set a cookie for the current page,

//This cookie will be stored as written and will last 60 seconds * 60 minutes = 3600 milleseconds
setcookie(“written”, “loaded”, time()+ 3600)

To set a cookie for the entire web site and directories,
//This cookie will be stored as written and will last 60 seconds * 60 minutes = 3600 milleseconds
setcookie(“written”, “loaded”, time()+ 3600, “/”)