Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Sessions and PHP Include Statement

    I am using sessions to store user data, but when I also use a PHP Include statement at the beginning of my file, the sessions do not work. When I comment out the include, the session works fine. Why would the include interfere with sessions and how can I rectify this?


    [CODE]
    <?php
    session_start();
    include('../Header.php');
    ?>
    [CODE]


    Thank You

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Something in Header.php is messing you up I suppose? I have no idea, I can't see that file.


  •  

    Tags for this 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
    •