Blog Home | Fife Visits Blog | Fife Rant Blog | Random Computing Stuff Index

Investigating PHP

I am currently working my way through MySQL for Dynamic Websites by Larry Ullman (edition 4).
I currently (December 2012) run php 5.3.10-10 and a mysql 5.1.28 database on apache 2.2.22 server on Ubuntu 12.04 in VirtualBox.

Chapter 12: Review and Pursue

Change code in logout.php script: Jan 2013

The php code in the pdf below is an investigation of the 6th Pursue element of Chapter 12 PHP and MYSQL for Dynamic Web Sites (ed4) by Larry Ullman.
I just changed line 18, script 12.11 from
setcookie('PHPSESSID', '', time()-3600, '/', '', 0, 0); //destroy the cookie
to
setcookie(session_name(), '', time()-3600, '/', '', 0, 0); //destroy the cookie Pursue ch12 item6
I have given the whole of the script in the pdf below including the original line.

If the pdf doesn't open, go to login script.pdf