Click to See Complete Forum and Search --> : how do i write to


pelegk1
08-21-2003, 05:04 AM
session cookies (which in the RAM)?

ggriffit
08-21-2003, 05:53 AM
You are able to write to these cookies in the same way as you write to other cookies.

pelegk1
08-21-2003, 06:55 AM
between session cookies in the server to the ones in the browsers ram?

A1ien51
08-21-2003, 07:56 AM
They have different ways of accessing them. Do a search on google and I am sure you can find some good reference on this subject.

pelegk1
08-21-2003, 08:33 AM
how do i write into a cookie in the ram and how do i read
beacuse from session cookie i know how to write and read
thnaks
peleg

rdoekes
08-21-2003, 03:06 PM
Writing Cookies:
Response.Cookies("name_of_cookie")("key_optional") = "bla"

Reading Cookies:
iVar = Request.Cookies("name_of_cookie")("key_optional")

These cookies are stored in the RAm of the browser. When the user closes the browser, the cookie is destroyed.

If you would like to make the cookie permanent you add one more statement after you wrote the cookie:
Response.Cookies("name_of_cookie").Expires = "some_date_in_the_future"
This will leave the cookie on the client computer until the expiration date.

-Rogier Doekes

pelegk1
08-24-2003, 12:30 AM
written to the broswer's cache?
this is u mean the difrence between a cookie ih the pc memory and a cookie as a file in the browser's cache?

rdoekes
08-24-2003, 11:20 AM
No, a cookie is always a file written to the PC's filesystem. However, when you do not set the expires property, it will be distroyed when you exit the browser.

pelegk1
08-25-2003, 06:53 AM
say there was an error and windows closed thebrowser
with fatal error wihtought deleting the cookie
will next time it willdelete the cookie:?

pelegk1
08-25-2003, 07:01 AM
say there was an error and windows closed thebrowser
with fatal error wihtought deleting the cookie
will next time it willdelete the cookie:?