logo       
Google Custom Search
    AddThis Social Bookmark Button

[PHP-INSTALL] Strange error with PHP 4.3.8: msg#00138

Subject: [PHP-INSTALL] Strange error with PHP 4.3.8
Hello List,

I am using PHP 4.3.8 in a Sun Unix environment. I encounter a strange error: When I logged into an app based on this PHP version it redirects me to the original login dialogue after a successful login (using session ids).

I have traced down the error cause to the follwing line:

  ini_set("session.use_cookies",0);

The strangest thing is, that I have put all session commands in one include file which is included in virtually every file of the app. Only the file which contains the frameset-definitions fails on this line. If I comment it out, everything works ok. The same line is present in the first file which the user calls where all the login verification is done. There I cannot observe any failure. I have tried the above command with the zero in quotation marks, but that isn't the cause. A research with Google on issues of PHP 4.3.8 with this command or with "use_cookies" revealed nothing. Version 4.3.6 shows no problems.

Below the full code of the included file and the first lines of the first file which handles the login.

Thanks for your help,
Jonathan.

----------------- included file for session handling ------------------------ ini_set("session.use_cookies",0); // Deactivate cookie session function session_name("TRS_Session"); // Define session name session_start(); // Initialize session

  import_request_variables ("PG","form_");

  if ( !session_is_registered('sess_status') ) {
     header("location: trs.php");
     exit;
  }


-------------------- first file to login ----------------------------------------- ini_set("session.use_cookies",0); // Deactivate cookie session fuction session_name("TRS_Session"); // Define session name session_start(); // Initialize session

  // Compatibility patch for < PHP 4.2:
  if (function_exists ("import_request_variables")) {
     import_request_variables ("PG","form_");
  }

if ( $_SESSION["sess_status"] == true ) { // If login has already been successful: header('location:index.php?'.SID); // go directly to index.php, no login !!MUST pass SID to page!!!
     exit;
  }
....

_________________________________________________________________
Smart Saving with ING Direct ? earn 5.25% p.a. variable rate: http://ad.au.doubleclick.net/clk;7249209;8842331;n?http://www.ingdirect.com.au/burst6offer.asp?id=8




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>