$id_sor=mysql_fetch_assoc($id_sor);
$_SESSION['id'] = $id_sor['uye_id'];

Böyle bir kod ekledim if 'in içine ama olmadı. Boş döndürüyor.