The problem is the conversion of t and f to
t
f
Try:
if ( $_SESSION['login']['a_moderator'] ) { // do this }
It is a boolean, not a string.