+ Reply to Thread
Results 1 to 6 of 6

Thread: hmmm headers and sessions?

  1. #1
    swirly's Avatar
    swirly is offline x10 Elder swirly is an unknown quantity at this point
    Join Date
    Jul 2005
    Location
    NC
    Posts
    965

    hmmm headers and sessions?

    Ok well I'm having some problems right now with my site. It's www.freeware.x10hosting.com. Please go there.See the error on the right side? how can I fix that? I've tried a few things but none of them worked. I'll give 35 points to the person that helps me!
    Don't go to bed angry, stay awake and plot revenge.

  2. #2
    dest581 is offline x10 Lieutenant dest581 is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    348

    Re: hmmm headers and sessions?

    Include session.php before any HTML is displayed. That way, headers won't already be sent.
    Last edited by dest581; 02-23-2007 at 01:14 PM.

  3. #3
    Chris S's Avatar
    Chris S is offline Retired Chris S is an unknown quantity at this point
    Join Date
    Mar 2005
    Posts
    1,036

    Re: hmmm headers and sessions?

    have you put this in each file?

    PHP Code:
    ob_start(); 
    All code goes here
    PHP Code:
    ob_end_flush(); 

    I would love to change the world, but they won't give me the source code

  4. #4
    sk1tL1L is offline x10Hosting Member sk1tL1L is an unknown quantity at this point
    Join Date
    Aug 2006
    Posts
    59

    Re: hmmm headers and sessions?

    make sure that
    <?php
    session_start();
    ?>
    is on the top of the page. THE VERY TOP OF THE PAGE, BEFORE ANYTHING ELSE. Then Try
    sk1tL1L

  5. #5
    swirly's Avatar
    swirly is offline x10 Elder swirly is an unknown quantity at this point
    Join Date
    Jul 2005
    Location
    NC
    Posts
    965

    Re: hmmm headers and sessions?

    well the login script isnt mine. i downloaded it. so idk. but ill try these.
    Don't go to bed angry, stay awake and plot revenge.

  6. #6
    t2t2t's Avatar
    t2t2t is offline x10 Elder t2t2t is an unknown quantity at this point
    Join Date
    Sep 2006
    Location
    Europe, Estonia
    Posts
    690

    Re: hmmm headers and sessions?

    Like everyone else said, remove session_start(); from Login System v.2.0/include/session.php (ps. spaces?!) and put it on top of all pages, even on first line.
    This post has been marked spam 52 times.


+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers