Jump to content

not removing session info?


RaythMistwalker

Recommended Posts

    $id = $_SESSION['SEE_MEMBER_ID'];
    $sessID = $_SESSION['SESSION_ID'];
    $unQry = "SELECT login FROM members WHERE member_id='$id'";
    $unRes = mysql_query($unQry);
    $un = mysql_result($unRes,0,"login");
    $delSessQry = "DELETE FROM sessions WHERE sess_id='$sessID'";
    $sendDelQry=mysql_query($delSessQry) or trigger_error('Query error! Query: <pre>'.$sendDelQry.'</pre>Reason: ' . mysql_error()); 
    $delSessQry = "DELETE FROM sessions WHERE username='$un'";
    $sendDelQry=mysql_query($delSessQry) or trigger_error('Query error! Query: <pre>'.$sendDelQry.'</pre>Reason: ' . mysql_error());

Ok this is part of logout.php

For some reason this is just refusing to remove the data from the sessions table and i've ran out of ideas now. I'm getting slightly annoyed as well cos of this.

 

Also PHP editor is returning no errors in coding either

Link to comment
https://forums.phpfreaks.com/topic/187848-not-removing-session-info/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.