View Full Version : Connection String in Session_OnEnd

01-26-2005, 07:37 PM
My Session_OnEnd event is not executing properly and I believe it's due to a problem with my connection string...

Set cn = Server.CreateObject("ADODB.Connection")
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=e:\domain.com\database\mydb.mdb;"

The connection is required to set a field in a database when the session is abandoned or times out. I have used the identical connection string in another ASP file without any problem. I believe it's the connection string because I've commented out all my other code for opening the recordset, etc. and this is where the failure occurs. Any thoughts. Thanks.