Hey group,

I'm running PHP 4, Apache 2.0 and MySQL on Windows XP and everything works
great  (wishing it was UNIX). Anyway my problem is when I start a session
it creates the file in the temp directory, but the session is
completely empty. When I upload the file to my LINUX server the session
works fine.

My configuration in PHP for the session seems to be configured correctly and
from what the documentation says, is configured correctly.

Got any idea's??

here is my session config:
------------------------
[Session]
session.save_handler = files
session.save_path = c:\php\tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = c:\php\tmp
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

here is my (dreamweavers) session code i'm using:
------------------------------------
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$FF_LoginAction = $PHP_SELF;
if (isset($QUERY_STRING) && $QUERY_STRING!="") $FF_LoginAction .=
"?".$QUERY_STRING;
if (isset($username)) {
  $FF_valUsername=$username;
  $FF_fldUserAuthorization="";
  $FF_redirectLoginSuccess="iDAM_UI.php";
  $FF_redirectLoginFailed="index.php";
  $FF_rsUser_Source="SELECT email_address, password ";
  if ($FF_fldUserAuthorization != "") $FF_rsUser_Source .= "," .
$FF_fldUserAuthorization;
  $FF_rsUser_Source .= " FROM owner WHERE email_address='" . $FF_valUsername
. "' AND password='" . $password . "'";
  mysql_select_db($database_iDAM, $iDAM);
  $FF_rsUser=mysql_query($FF_rsUser_Source, $iDAM) or die(mysql_error());
  $row_FF_rsUser = mysql_fetch_assoc($FF_rsUser);
  if(mysql_num_rows($FF_rsUser) > 0) {
    // username and password match - this is a valid user
    $MM_Username=$FF_valUsername;
    session_register("MM_Username");
    if ($FF_fldUserAuthorization != "") {
      $MM_UserAuthorization=$row_FF_rsUser[$FF_fldUserAuthorization];
    } else {
      $MM_UserAuthorization="";
    }
    session_register("MM_UserAuthorization");
    if (isset($accessdenied) && false) {
      $FF_redirectLoginSuccess = $accessdenied;
    }
    mysql_free_result($FF_rsUser);
    session_register("FF_login_failed");
 $FF_login_failed = false;
    header ("Location: $FF_redirectLoginSuccess");
    exit;
  }
  mysql_free_result($FF_rsUser);
  session_register("FF_login_failed");
  $FF_login_failed = true;
  header ("Location: $FF_redirectLoginFailed");
  exit;
}

--


Sincerely,
Franklin Cannata
DPCI
1560 Broadway, Suite 810
New York, NY 10036
212.575.5609 main
516.526.3744 mobile
212.575.5653 fax

AIM: theoracle991
Yahoo: fcannata2001

Reach Your Audience, Anywhere.
http://www.databasepublish.com


This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, you should delete this message and are
hereby notified that any disclosure, copying, or distribution of this
message, or the taking of any action based on it, is strictly prohibited.




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to