 |
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
|
|
|
|

June 21st, 2005, 05:34 PM
|
|
Authorized User
|
|
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

June 22nd, 2005, 11:27 AM
|
|
Authorized User
|
|
Join Date: May 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Firstly, what Operating System are you using? A windows based one or Linux?
|
|

June 28th, 2005, 12:35 PM
|
|
Authorized User
|
|
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|
 |