p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/forumdisplay.php?f=160)
-   -   Sessions (http://p2p.wrox.com/showthread.php?t=35168)

aegron November 16th, 2005 05:22 AM

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!



PlaGuE November 18th, 2005 11:03 AM

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

cuz that was my first mistake.lol.


aegron November 18th, 2005 11:21 AM

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.. [xx(]


cheetooh December 19th, 2005 06:05 AM

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


usdaemon December 19th, 2005 07:49 AM

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



All times are GMT -4. The time now is 08:14 AM.

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