hi this is more of a theory question,

i have a login page all working fine etc... it creates a cookie

in myglobal .asx file is that what can i use that to write to the database
for example what i want is that i write to the database a 1 in a new column i create called logged in,
therefore no one else can log in if column logged in is set to 1 for that user

can these inserts be done on session start and session end from my point of view