Added: June/21/2004 at 7:15am | IP Logged
|
|
|
Hi,
On the subject of cookies in asp, is there a way of adding 'records' to the cookie to enable (for instance) a list of visited sites for a user to be added and recalled when the user logs on to our site?
I have managed to add single records of websites visited within our site, but I can't get it to add more - only overwrite.
This is what I am using:
Set Recordset1 = Server.CreateObject("ADODB.Recordset") Recordset1.ActiveConnection = MM_star_STRING Recordset1.Source = "SELECT * FROM TABLE WHERE TABLEID = " + Replace(Recordset1__MMColParam, "'", "''") + "" Recordset1.CursorType = 0 Recordset1.CursorLocation = 2 Recordset1.LockType = 1 Recordset1.Open()
Recordset1_numRows = 0 Msite=(Recordset1.Fields.Item("TABLEWebsite").Value) %> <% Response.Cookies("firstname") ("Key1") =Msite Response.Cookies("firstname").Expires=#May 10,2006# %>
Obviously it just overwrites anything in the Msite string. I need a way of adding sites instead of overwriting.
Cheers 
|