Old 04-14-2005   #1 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 2

Question Complete Membership Tutorial Error

I setup the complete membership site according to your tutorial and using your download. Everything worked however when I go to login I get the following error. I think it may be permissions but not sure. Please help

Warning: Cannot modify header information - headers already sent by (output started at /home/XXXX/public_html/member/config.php:1) in /home/XXXX/public_html/member/login.php on line 27

the url is XXXX.com/member/login.php (not passing me to member.php)

Yet when I go directly to member.php it has all my personal info and I am logged in.


Thanks!

OH and also do I just have to include the following on any page i want secured by this login or is there more to it?

<?php
session_start();
if($_SESSION['s_logged_n'] == 'true'){
include 'process.php';
?>



***UPDATE***

I fixed my error message but do still need the procedure for adding pages & programs for which this login is used for. THANKS

Last edited by Melissa; 04-14-2005 at 11:19 PM.
Melissa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-15-2005   #2 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
i have a lot of people asking about this error, the most logical cause is that you accidentally put some html before the php code, check what's on line 1 and post it, it SHOULD be: <?php
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-15-2005   #3 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 2

I fixed that error code. It was white space in the config.php. People may be having the same problem if they are cutting and pasting from your tutorial.

My only question now is ...to create pages for members to go to....all I have to do is include that code at the top? I have added this code to the top of some .html pages and it lets me in without being logged in.

<?php
session_start();
if($_SESSION['s_logged_n'] == 'true'){
include 'process.php';
?>

????? Or does it have something more to do with the menu.php?

Last edited by Melissa; 04-15-2005 at 07:00 AM.
Melissa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-15-2005   #4 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
sorry, i was going to include that in my last post but i forgot =\

menu.php is just used as an example, it's not part of the membership system.

all you need to do it have the if statement: if($_SESSION['s_logged_n'] == 'true')

include 'process.php' doesn't need to be used on any pages except those you wish the user to have functionality such as changing their password etc on, if you look at process.php you will see that it is comprised simply of a bunch of action processing commands.

have fun
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-01-2005   #5 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
for future reference on membership script problems, please check the faq before posting. thanks.
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 01:03 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT