Hi the code is follows
<?php
require_once('./utils.php');
if(!isset($_SESSION['timestamp_logo_path']))
{
$time = BASENAME_TIME;
$_SESSION['timestamp_logo_path'] = $time;
}
$tempFile = $_FILES['Filedata']['tmp_name'];
$fileName = $_FILES['Filedata']['name'];
$fileSize = $_FILES['Filedata']['size'];
$path="ProfileImages/";
$uploadfilePath =$path.$_SESSION['timestamp_logo_path']."_".$fileName;
move_uploaded_file($tempFile,$uploadfilePath);
?>
the session variable $_SESSION['timestamp_logo_path'] using in another page
in function
function fn_image_upload($imageUploadObject)
{
$uploaddir = "ProfileImages/";
$uploadname = basename($imageUploadObject[photoPath]);
//if($uploadname==''){
// $uploadname="default.jpg";
//}
//$logopath=$_SESSION[timestamp_logo_path];
$logopath=$_SESSION['timestamp_logo_path'];
$uploadfile = $uploaddir.$logopath."_".$uploadname;
$searchResults = array();
$temp = new Employee();
$temp->photoPath = $uploadfile;
array_push($searchResults, $temp);
unset($_SESSION['timestamp_logo_path']);
return $searchResults;
}
here i am unable to get the variable value in FF...but it is working fine in IE