On a successful login you could set a set session variable and test for that on each page (arghhh session variables 0 no you should be alright if you use them sparingly and DO NOT store objects inthem).<BR>Alternatively you could store the sessionid in a table and then test against that session variable on each page (does introduce an extra call to the database though)
I'm scratching my head now because I think you know the answer to this but you don't know it yet!!<BR>Well.....select yourfield from yourtable where yourfield = the sessionid.<BR>You get a hit you got a match
Mark<BR><BR>I'm getting very confused here as to what more you need from me other than me writing the code for you.<BR>If you are storing the sessionid in a database and you know how to select a record from this database based on a value that you have -in this case a sessionid - then all you need to do is test whether the recordset (if this is what you are returning) is populated. You can do this using EOF and BOF properties of the recordset object and a basic if statement.<BR>It's that simple so I suggest you just have a little think, draw a diagram or write some structured english (if they teach you these things these days) and all will become clear.