28, May 2012

error page issue solved like siherrera's - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: error page issue solved like siherrera's
« previous next »
Pages: [1] Print

Author Topic: error page issue solved like siherrera's  (Read 1108 times)
I crack Photoshop!
*
Posts: 3
26 credits
Members referred : 0


« on: Jul 19, 2006, 11:29:46 pm »

Hi Olaf,
I'm quite new to php but have started  to get the hang of it thanks to your access_user files. I was having a similar problem as siherrera in getting an error page instead of being directed to login if I went to a protected page. The server log files showed a 302 error each time. I had a friend who is quite familiar with php take a look at it and she found that the example.php code (line 5) had the following:

//$page_protect->login_page = "login.php";// change this only if your login is on another page

She took the 2 comments //s out of the beginning of this line and it all works fine now. I just thought I'd pass it along.

Thanks for sharing this code with us.  Smiley
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jul 19, 2006, 11:54:05 pm »

Quote
//$page_protect->login_page = "login.php";// change this only if your login is on another page

right this is to overrule the default setting inside the config file.

thanks for posting this here...

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3340
Tags : php Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: error page issue solved like siherrera's
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:22:58 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.