I recall reading that ( besides using Session Object period )<BR>that storing Objects in the session was a bad idea. Our<BR>Web site is on an Intranet, and will not get pounded, so<BR>Session objects are no problem.<BR><BR>However, Im trying to store a Dictionary object in the<BR>Session, so I don&#039t have to query a database over and over<BR>for the same user. There are only about 10 key/value pairs<BR>in the dictionary. Fairly Straighforward code, to lookup<BR>a name based on an id. Here&#039s the code:<BR><BR>Function Lookup_Devid( device_id )<BR> <BR> Dim dicKey, dicVal, dicObj<BR> Dim oSvConn, oSVCmd<BR> Dim did, dname<BR> Dim objRS, objSVRS<BR> Dim strSQL<BR> <BR> if ( IsNull(Session("DevidDict")) ) then<BR> Set dicObj = Server.createobject("Scripting.Dictionary")<BR> Set oSVConn = nothing<BR> Set oSVConn = Server.CreateObject("ADODB.Connection")<BR> oSVConn.ConnectionString = "driver={SQL Server};uid=sa;pwd=;database=tempdb;server=MYServe r"<BR> Set objSVRS = Server.CreateObject("ADODB.Recordset") <BR> strSQL = "SELECT distinct Item_id, Item_name FROM MyTable <BR> oSVConn.Open<BR> set objSVRS = oSVConn.Execute(strSQL)<BR> <BR> Do Until objSVRS.EOF = True<BR> did = objSVRS("device_id")<BR> dname = objSVRS("device_name")<BR> dicObj.Add did,dname<BR> objSVRS.MoveNext<BR> Loop<BR> oSVConn.Close<BR> Session( "DevidDict" ) = dicObj<BR> else<BR> Set dicObj = Session("DevidDict")<BR> end if<BR> if dicObj.exists(device_id) then<BR> Lookup_Devid = dicObj.Item( device_id )<BR> else<BR> Lookup_Devid = "Unknown"<BR> end if<BR>End Function<BR><BR><BR><BR><BR>When I try to set the Dictionary into<BR>the Session on line:<BR><BR> Set dicObj = Session("DevidDict")<BR><BR>I get the following error:<BR><BR>Microsoft VBScript runtime error &#039 800a01a8&#039Object required: &#039Session(...)&#039<BR>funcs.inc line 95<BR><BR>Why oh Why?<BR>