PDA

View Full Version : how to know if the user loggedin from the database?


Bondo2
11-07-2008, 10:47 AM
i want to know if the user has been logged in from the database, i don't want use any vbulletin condition or function, because i want to integrate an script with my forum, and the script pages is not in the vb dir

i tried to use the session table, fields(userid, loogedin,ipaddress).
but some times session still available but the login form apper in the vb, so my script still see the user logged in, but in fact he is not!
what is the table and the fields that used to know that?

Lynne
11-07-2008, 02:47 PM
You do need to use the session table, but you should also look at lastactivity to make sure they were last active within your Session Timeout time.

Bondo2
11-08-2008, 10:14 AM
fantastic