I just want to add that this new field (imgID), should be of type text.
Main Topics
Browse All TopicsHello,
Is it possible to convert session variables into cookie with keys?
Here is what I want to do.
I have session variable called "session(ImgID)"
This stores text that user typed in the text area.
Then, I have cookie called
Cookies("Bookmark")(cookie
cookieKey stores only Image ID
I would like to save the session variable in the database correspond with cookieKey.
I don't know if I have to convert the session variable into one of the Key or not..
ex.
customer ID = 3
cookieKey= 10001 (Cookies("Bookmark")(cooki
note= hello world. (session(imgID))
cookieKey = 10002
note = hello America.
So I would like to add session(imgID) in this SQL.
but session(imgID) has to match with each cookieKey.... this is the part I don't know how..
"INSERT INTO Wishlists (CustomerID, ItemID) VALUES (" & customerid & ", '" & cookieKey & "')"
imgID (in session) match with cookieKey, and I have field called "comment" in same sable.
here is the table structure.
Table Name (wish list)
Field - CustomerID, ItemID, Comment
I use Access Database.
Thank you for your help
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Is it possible to make it happen without adding column? ImgID is actually same value as cookie key.
So I may just need SQL statement to do this.
Something like this..
If CustomerID= customerID
and ItemID= cookiekey
then
insert comments = session(imgID)
But I don't know how to write it...
Thank you for your help
I think I now get what you want to do...
You could store your cookiekey, customerID and session(imgID) in an array. That would make it easier for you.
Or you could dynamically create variable names to hold each set of values. The variable names could end with autoincrementing numbers.
But the first option I think will be easier for you. If you hadn't thought of that, give it a go. If you need more info, let's know.
God be with you.
Business Accounts
Answer for Membership
by: cedlinxPosted on 2008-03-13 at 01:54:28ID: 21114287
Add another column (ImgID) to your wishlist table. Then during insert, insert the corresponding session(imgID) to this field. I hope that's what you are looking for.