Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2005, 05:34 PM
Authorized User
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to set up php.ini for sessions

I just bought the book and worked up to chapter 2 page 47/48 (Passing the visitor's username)

The code seems to work fine as i can click the link in movie1.php
and it redirects me to moviesite.php. But the only thing that shows up on the page is the following:

"Sorry, but you don't have permission to view this page, you loser!"

This probably means that the session does not pass somehow.

Just before the "Try it out" code oon page 47 the writers mention the "session.save_path" settings. But sadly it's all they do.
When i look this snippet up in the php.ini the explenation above it does not make me any wiser.

So i tried enabling the "session.save_path" with the default setting: "/tmp".

As the explenation above said: the path structure will not be created automatically, so i manually created a /tmp folder in my apache test folder.

And, since i'm still posting my question, it obviously did not work.
Disabling the "session.save_path" gives me the same result...

Can anyone help me understand the session settings a bit better so i can set them up properly, or is this problem an entirely diffrent issue? Bottomline is that i need to figure this out, and google has yet to find me the correct answer.
Thanks in advance.

With kind regards,
Benny Cohen.


 
Old June 22nd, 2005, 11:27 AM
Authorized User
 
Join Date: May 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Firstly, what Operating System are you using? A windows based one or Linux?

 
Old June 28th, 2005, 12:35 PM
Authorized User
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found out what the problem was. It was a problem with my resolution (yes, resolution).

I was coding behind my tv and could not see the fact that i spelled sessiom somewhere instead of session.
I saw this only when i switched back to my monitor. and viola she worked :)

But thanks anyway!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Set different Timeouts for Different Sessions savan_thakkar ASP.NET 1.0 and 1.1 Professional 3 October 7th, 2006 11:46 AM
Session Error / PHP.ini file socoolbrewster Beginning PHP 5 June 8th, 2006 04:18 AM
Ch 2; php.ini set up; /tmp file (where is it?) monster BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 February 21st, 2006 06:09 PM
php.ini problem jun99 PHP How-To 0 January 22nd, 2006 04:10 PM
php.ini allang Beginning PHP 1 November 20th, 2003 09:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.