Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    jack's Avatar
    Senior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    1,612
    Downloads
    0
    Uploads
    0

    PHP session_start() question?

    I have my site structure set up so that my 1 main-index page grabs the page content from the other .php pages.
    This is causing much headache when trying to include files with session_start() for login. Is it bad to have session_start(); initiated at basically every page change on the site? Doing it this way works perfectly x_x

  2. #2
    Joe B's Avatar
    Senior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    154
    Downloads
    0
    Uploads
    0
    usually i would create a config.php file like this:

    <?php

    session_start();

    /*

    DATABASE INFO HERE OR OTHER STUFF

    */

    ?>

    and just include it at the top of everypage..

 

 

Quick Reply Quick Reply

Click here to log in


What is the sum of 36 and 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. About PHP: session_start() function?
    By Johnny Evil in forum Discuss PHP
    Replies: 0
    Last Post: 10-10-2011, 06:00 AM
  2. PHP session_start() problem?
    By davidfalsis in forum Discuss PHP
    Replies: 0
    Last Post: 12-04-2010, 04:42 AM
  3. PHP session_start(); problem...?
    By J-Man in forum Discuss PHP
    Replies: 0
    Last Post: 04-16-2010, 06:35 AM
  4. PHP session_start(); problem...?
    By J-Man in forum Discuss PHP
    Replies: 0
    Last Post: 04-14-2010, 07:31 PM
  5. Replies: 2
    Last Post: 10-18-2009, 05:43 PM

Bookmarks

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •