28, May 2012

start page does not appear after login - 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: start page does not appear after login
« previous next »
Pages: [1] Print

Author Topic: start page does not appear after login  (Read 1516 times)
Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« on: Oct 24, 2007, 10:57:22 pm »

My login seems to work well but after login I do not seem to be directed to the start page.  Looks like the line header("Location: ".$next_page); is not working.  I verified that $next_page has a value ("/classes/access_user/logged.php") and the script runs upto that point.  Help appreciated.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 25, 2007, 06:11:22 am »


Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« Reply #2 on: Oct 25, 2007, 06:16:48 am »

I seem to get it to work but battling with these errors:

Warning: Cannot modify header information - headers already sent by (output started at /big/dom/xfeow/www/classes/access_user/login.php:9) in /big/dom/xfeow/www/classes/access_user/access_user_class.php on line 130

Seems login.php cannot have much above the code.  If I delete everything above <? include($_SERVER['DOCUMENT_ROOT'] then the login works fine.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 25, 2007, 06:18:51 am »

it's for all php scripts never output data before you send a header Wink

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7278
Tags : login 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: start page does not appear after login
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 09:38:26 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.