PHP sessions

Discussion in 'General' started by Brian_A, Mar 24, 2011.

  1. Brian_A

    Brian_A New Member

    We have one server using IPSCONFIG3. When I transferred a small web site to this server I have a php error saying the session is already started. I'm sure that the php code is only calling session_start(); once per new page and I don't have this problem on the test server. Could this be a function of ICPCONFIG or should I look elsewhere for this problem?

    Brian
     
  2. otacon

    otacon New Member

    try this to verify it really has started on a blank php page:

    PHP:
    if(session_id()){
    echo 
    "Session started!";
    }else{
    echo 
    "Session not started!";
    }

    Don't know if this is your issue, but be sure to check if session.auto_start = 0 in your php.ini file.
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Is this maybe a problem with your cookies in your browser? Try to clear them for that web site.
     

Share This Page