1

I am using this script, setting the session name with session_name:

<?php
ob_start();
session_name ("my_cookie");
session_start();
...
ob_end_flush();
?>

however, in the browser opening the site, I'm still seeing the cookie name osCsid. What am I missing? How do I set the session name properly?

--EDIT--

here is the full script:

<?php
  session_name ("MyCookie");
  session_start();
  $UA = $_SERVER['HTTP_USER_AGENT'];
  $REF = $_SERVER['HTTP_REFERER'];
  $IP =   $_SERVER['REMOTE_ADDR'];
  $GUID = session_id();
  $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
  //echo $UA;
  //echo $REF;
  //echo $IP;
  //echo $GUID;
  echo ("python ../header_sender.py -u '$UA' -r '$REF' -i '$IP' -c '$GUID' -p '$actual_link' 2>&1");
  echo exec("python /var/www/html/oscommerce-2.3.3.4/header_sender.py -u '$UA' -r '$REF' -i '$IP' -c '$GUID' -p '$actual_link' 2>&1");
  ?>
WeaselFox
  • 7,220
  • 8
  • 44
  • 75

1 Answers1

0

OK, found the issue:

The problem wat that oscommerce was overriding the session, killing my cookie and replacing it with osCsid This Question had the answer.

Many Thanks to Rizier and Laxus for trying to help me out...

Community
  • 1
  • 1
WeaselFox
  • 7,220
  • 8
  • 44
  • 75