login.php
$yetkili = new YETKILILER();
$yetkili->YETKILI_TC=$YETKILI_TC;
$yetkili->YETKILI_SIFRE=$YETKILI_SIFRE;
$_void = $yetkili->Giris();
$_SESSION['YETKILI'] = $yetkili;
index.php
$yet = $_SESSION['YETKILI'];
$tc= $yet->YETKILI_TC;
// Output $tc =null :/
Hello everyone. I'm trying to set up a class inside the sessions from php and request it from other pages but when I try to do that, I only get null. Could someone help me please? Thank you.