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

November 16th, 2005, 05:22 AM
|
Registered User
|
|
Join Date: Nov 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|

November 18th, 2005, 11:03 AM
|
Registered User
|
|
Join Date: Nov 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
is your if($_SESSION['authuser'] != 1){
or if($_SESSION['authuser'] == 1){
cuz that was my first mistake.lol.
|

November 18th, 2005, 11:21 AM
|
Registered User
|
|
Join Date: Nov 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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..
|

December 19th, 2005, 06:05 AM
|
Registered User
|
|
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi. for my case, i changed from session.cookie_path = \ to session.cookie_path = /. i works. hope it helps
|

December 19th, 2005, 07:49 AM
|
Registered User
|
|
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi
creat a folder named "c:\tmp" to store sessions and cookies.
nothing to lose, try it.
Let me know, thax
baohuynhviet@yahoo.com
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is 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 |
|
 |