Thanks this is helpful I never realized that about the the session id. Unfortunatlye the username, password and group are established by the log in user behavior in dreamweaver so that is all done through a nice screen where I don't write any script. Therefore I'm not sure where that happens exactly. I'm guessing I could plug a few lines into that to pull in the other data. On the sceond option dreamweaver also makes the sql very easy (if it is a simple request) but writing a query to establish the recordset is more complex than my current knowledge.