venkyphp Posted December 23, 2009 Share Posted December 23, 2009 In my application session variable is recognized by IE but when it opens in FireFox session variable is not recognized and getting empty value...its critical issue in my application..any one can help me...plzzzzzzzz.. Quote Link to comment Share on other sites More sharing options...
trq Posted December 23, 2009 Share Posted December 23, 2009 PHP is executed on the server long before it arrives at any browser, therefore, what browser you using makes no difference at all to php. It knows not what a browser is. One issue that will effect sessions however is whether or not your browser has cookies enabled. Quote Link to comment Share on other sites More sharing options...
venkyphp Posted December 23, 2009 Author Share Posted December 23, 2009 Yes in my ff browser cookies are enabled still i am not getting session variable..it is working fine IE why not FF...suggest me the solution.. Quote Link to comment Share on other sites More sharing options...
Adam Posted December 23, 2009 Share Posted December 23, 2009 Do you have cookies disabled in FF? Quote Link to comment Share on other sites More sharing options...
trq Posted December 23, 2009 Share Posted December 23, 2009 Do you have session_start within all pages that are accessing the $_SESSION array? Do you have error reporting and display errors on so you can actually debug the problem? Quote Link to comment Share on other sites More sharing options...
venkyphp Posted December 23, 2009 Author Share Posted December 23, 2009 Cookies are enabled...in FF.. Quote Link to comment Share on other sites More sharing options...
venkyphp Posted December 23, 2009 Author Share Posted December 23, 2009 No Errors to debug in my code..it is working fine in IE why not in FF..i am not able to understand the problem what is.? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 23, 2009 Share Posted December 23, 2009 Neither can we because you have not posted any specific information about your code or data. I'm going to guess that your form (or whatever the source is of your data) is invalid HTML and the data is submitted in one browser but not another. It would take seeing the relevant information and code showing where the data comes from and what the data actually is that is not turning up in a session variable. Quote Link to comment Share on other sites More sharing options...
venkyphp Posted December 23, 2009 Author Share Posted December 23, 2009 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 Quote Link to comment Share on other sites More sharing options...
trq Posted December 23, 2009 Share Posted December 23, 2009 I don't see any call to session_start(). Quote Link to comment Share on other sites More sharing options...
venkyphp Posted December 23, 2009 Author Share Posted December 23, 2009 it is in the php file utils.php what i have embedded here ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.