Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 21st, 2005, 05:34 PM
Authorized User
 
Join Date: Jun 2005
Location: , , .
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.


Reply With Quote
  #2 (permalink)  
Old June 22nd, 2005, 11:27 AM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote
  #3 (permalink)  
Old June 28th, 2005, 12:35 PM
Authorized User
 
Join Date: Jun 2005
Location: , , .
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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.