note 41563 rejected from function.session-register by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 14 Apr 2004 22:01:02 +0000 |
| Subject: | note 41563 rejected from function.session-register by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68137@lists.php.net to get a copy of this message | ||
Note Submitter:
----
what is the wrong here. allvays saying you are not a member....
<?
include "db.php";
if(!isset($_SESSION["linkkullanici"]) )
{
echo "You are not a member";
exit;
}
if(isset($_SESSION["linkkullanici"]))
{
$se=mysql_db_query($dbname,"Select * from kullanici where
kullanici_adi='$HTTP_SESSION_VARS[linkkullanici]' ") ;
$lam=mysql_num_rows($se);
if($lam<1)
{
echo "You are not a member";
exit;
}
$talha=mysql_fetch_array($se);
}
$oturum_id=session_id();
if($talha[oturum_id] != $oturum_id)
{
echo "You are not a member";
exit;
exit;
}
?>