View Single Post
  #5 (permalink)  
Old July 7th, 2005, 06:03 PM
eggspencer eggspencer is offline
Registered User
 
Join Date: Jun 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A quick correction on my previous post, I am using a tinyint to store logged_in in the user_session table (in MySQL 4.1.0 and above BOOL is a synonym for TINYINT - http://dev.mysql.com/doc/mysql/en/nu...-overview.html). To make this work change:

if ($row["logged_in"]=="t")

to:

if ($row["logged_in"]==1)

in the _session_read_method function. Otherwise the function does not correctly evaluate whether the user is logged in or not