OK, are you dealing with surfers in general, or do the people physically log into your sites?
Either way, you will probably have to setup sessions, or cookies for this. (The only difference between general surfing or logging in would be in how you could identify them)
For example, if a surfer was logged into your site, you could use sessions or a cookie to set their loginID, and unique index from your table. Then each page could call that cookie (or sesion) to ge the user's credentials, and let them through without having to log back in.
If it is just a general surfer, then you would have to get their IP address, and basically do the same (store that in a cookie or session)...