I know exactly how you feel m8.
I also have the Sams php, mysql and apache all in one book. Some stuff in it is great, anything to do with sessions in this book is rubbish. I can't get any of it to work. putting session_start() as the first item on the page seems to work ok, but if I try t o set, for example, $SESSION['username']= $POST['$username']; I get errors sprouting up everywhere on the page stating something like:
undefined function session() can't find file or document in c\php\includes.
There is obviously something that should be set somewhere (possibly in the php.ini file) which the book has NOT covered. So where I get this information, I don't know. Also, if there has to be something set in the php.ini file, how on earth does I set that when I'm not running my own server, but use a webhost?
Any sensible answer would be warmly welcomed. And please, no smart alec gloating type answers about searching and reading the manual. I for one, wouldn't submit a post/request for help, unless I had tried everything I could possibly think of to solve the problem.
I find too many people these days dont want to help, but just make snyde comments to newbies about reading the faffing manual, which is NOT written for the new programmer but only for the very experienced technical user.