PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php ob_start();
session_start();
error_reporting(0);
include 'cw-config.php';
extract($_POST);
extract($_GET);
$_SESSION['url'] = $_SERVER['REQUEST_URI'];
if($_SESSION[userid]!=''){
$details=mysql_fetch_array(mysql_query("select * from register where guid='".$_SESSION["userid"]."'"));
}
$shopdata=mysql_fetch_array(mysql_query("select * from shop where guid='$shopid'"));
?>
Kindly visit:http://rewardsinn.com the problem is with categories/stores when selected from dropdown menu the session isn't getting transferred I am new to this coding and had redo everything as we were cheated by a designer.it was working fine till yesterday.Kindly help me in this.Once sign in and check to know the problem.
Kindly visit rewardsinn.com
sign in with fb,a session is created with ur user name and select any item from categories or stores it shows no session.whereas if u click on all the other menu items it shows session even though i am using the same code as above
rammohan518 wrote:Kindly visit rewardsinn.com
sign in with fb
Not going to happen.
rammohan518 wrote:a session is created with ur user name and select any item from categories or stores it shows no session.whereas if u click on all the other menu items it shows session even though i am using the same code as above
I'd recommend turning error reporting back on, at least in a development environment, and see what errors are being displayed/logged. That should give you some indication as to what's going wrong and where. Sessions need to be initiated before headers are sent, so before any output is sent to the browser, and just whitespace has been known to cause problems.
u can also register with any fake id and check..i am new to development so help me..just give any false email...no verification is present is website..requesting so that u will understand my problem..
and regarding what u said should put session start before everything(ob report)