postgresql - PHP Session Variable not Available -
i have php file (approvals.php) gets executed on ajax call. has postgresql query searches table , uses client id, set session variable. problem is, seems can't access session variable in file. query like:
$query = "select merchant_id ndovu_merchant_users customer_id={$_session['customer_id']}"; $result = pg_query($query);
i have tried echo session variable $_session['customer_id']
nothing. on passing fixed value query, returns result.
in case, have checked if session set in first place.
//this should set @ header of page session_start(); if(isset($_session['customer_id']) && !empty($_session['customer_id'])){ echo $_session['customer_id']; }else{ echo 'session not set'; }
php postgresql session
No comments:
Post a Comment