Get Fresh Tips Every Week!
Don't Miss Any Web Development Tips. Subscribe to the Web Development Tip Newsletter.

View Archive

Bookmark This Site
Keep up with our Tips


Tip of the Day RSS Feed
Fresh Web Development Tips Daily


Business Solutions
Our tips are powerful.
Our writers are experts.
Our results are guaranteed.

 

Listen to our Radio Show
Hot topics for both consumers
and webmarketers
on WebmasterRadio.FM

Every Wednesday, 4PM Eastern.

 

Using cookies

You can use cookies (local files) to store information instead of having to post variables back and forth between pages. It's easy - just use the request.cookies and response.cookies objects and methods. To save a value to a cookie, simply create a value, such as oranges: response.cookies("oranges") = 13 -- now you have a cookie on your computer with a key name of "oranges" which has a value 13. To retrieve the information, use the request.cookies method as: myVar = request.cookies("oranges") which will retrieve the value 13. You can also use the cookies as collections, such as response.cookies("oranges")("navels")=13. Now you have 13 Navel Oranges stored. To retrieve, use the same format: myVar = request.cookies("oranges")("navels").
6.7 6.7
Save Tip Tip Rating

Comments

Nobody has commented on this tip yet. Be the first.

Name:


Comment:




Learn more about our Exclusive Program we offer our clients.