Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 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 November 16th, 2005, 05:22 AM
Registered User
 
Join Date: Nov 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sessions

Hi everyone,

I'm reading your book, but I've run into a problem.

On page 47, the book starts talking about sessions, and how to alter php.ini referring back to the first chapter. I'm sorry but this part really doesn't make any sense. And now I'm stuck, because somehow the only answer I get, both when trying the first session thing and the cookie thing. Instead of getting picture 2.9 or 2.10 I get the message "Sorry, but you don't have permission to view this page, you loser!"

Can anyone explain what goes wrong?

thanks a lot!


Reply With Quote
  #2 (permalink)  
Old November 18th, 2005, 11:03 AM
Registered User
 
Join Date: Nov 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

is your if($_SESSION['authuser'] != 1){
or if($_SESSION['authuser'] == 1){

cuz that was my first mistake.lol.

Reply With Quote
  #3 (permalink)  
Old November 18th, 2005, 11:21 AM
Registered User
 
Join Date: Nov 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the first option.

But neither sessions nor cookies work. Also the login screen doesn't work. All I get is the "Sorry, but you don’t have permission to view this page, you loser!" Which gets quite annoying after a while.

I did change the session.save_path in php.ini but nothing seems to work..

Reply With Quote
  #4 (permalink)  
Old December 19th, 2005, 06:05 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi. for my case, i changed from session.cookie_path = \ to session.cookie_path = /. i works. hope it helps

Reply With Quote
  #5 (permalink)  
Old December 19th, 2005, 07:49 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
creat a folder named "c:\tmp" to store sessions and cookies.
nothing to lose, try it.
Let me know, thax
baohuynhviet@yahoo.com

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
sessions p2ptolu Classic ASP Components 3 March 17th, 2005 06:31 AM
Sessions 2540EA BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 20th, 2005 05:42 AM
Mixing classic ASP sessions with ASP.NET sessions scorpion_king General .NET 2 August 4th, 2004 08:20 AM
Sessions aeejai Beginning PHP 3 April 22nd, 2004 01:51 PM
Help sessions ittorget Pro VB 6 2 April 20th, 2004 02:18 AM



All times are GMT -4. The time now is 03:20 PM.


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