How about Javascript? Cookies depend on it. If you're running NoScript or something similar, and not allowing that site, sessions won't work.
NoScript will not interfere with cookies. It is possible he has a php.ini configuration problem, has white space being sent before the opening <?php - or white space / html before setting the cookie. If you have access to the curl command, try the following: curl --head http://yourdomain/yourfile.php Paste the output here. Most Linux distributions come with it and I think OS X does too. You might have to download it for windows. You can get curl here: http://curl.haxx.se/download.html
I am using window.location.href="http://xxxxxxx.com/FD1.php"; Is this the reason that I am loosing my session values ?
Not in and of itself. And how could you not "have access to the command prompt"? If you're in Windows, use the Windows Key +R, type cmd in the window and you're at the command prompt. In Linux it depends on the distro you're using. How do you maintain your computer without the command prompt? And why did you restrict your access to it?
I even tried hidden form field using POST method but it also NOT getting passed to the next page !! Going Mad !! :-((
What I feel , below Lines are the main culprit : var url="FD1.php"; window.location.href=url; Window.open opens a new window as a new session! .... What u guys suggest ?
Remove the white space on the second script, I said that in my original post lol. If you send anything to the browser even blank space it will not work. Change FD1.php to this: <?php session_start(); // start up your PHP session! ini_set('display_errors', 1); error_reporting(E_ALL|E_STRICT); if(session_id()){ echo "Session started!"; }else{ echo "Session not started!"; } $plan = $_SESSION['plan']; echo $plan; $PlanPrevValue='0'; $PlanValue = '0' ; $PlanDuration='0'; If ($plan == 'silver') { $PlanPrevValue='89.00'; $PlanValue = '59.00' ; $PlanDuration =' 6 months '; session_destroy(); } ElseIf ($plan == 'gold') { $PlanPrevValue='199.00'; $PlanValue = '149.00' ; $PlanDuration =' 12 months '; session_destroy(); } ElseIf ($plan == 'diamond') { $PlanPrevValue='299.00'; $PlanValue = '249.00' ; $PlanDuration =' 24 months '; session_destroy(); } elseIf ($plan == 'platinum') { $PlanPrevValue='299.00'; $PlanValue = '349.00' ; $PlanDuration =' 36 months '; session_destroy(); } else { $PlanPrevValue='0'; $PlanValue = '0' ; $PlanDuration =' '; session_destroy(); } ?> <?php include("top.php"); ?> <?php include("left.php"); ?> <td class="main_nav"> <div id="main_text"> <form name="FD" action="https://xxx.net/lpc/servlet/lppay" method="post" target="_blank"> <input type="hidden" name="storename" value="00000000" /> <input type="hidden" name="chargetotal" value=<? echo $PlanValue ?> /> <input type="hidden" name="txnorg" value="eci" /> <input type="hidden" name="mode" value="payplus" /> <input type="hidden" name="txntype" value="sale" /> <input type="submit" name="submit" value="Continue to secure payment form" /> </form> <?php include("bottom.inc"); ?> PHP:
That means that something is being sent to the browser before the session was started. It's a very common error and all you need to do is remove anything that is being outputted before you call session_start();