Results 1 to 2 of 2

Thread: Cookies

  1. #1
    Join Date
    Dec 1969

    Default Cookies

    how to write cookies to our client m/c & later retreive them.I&#039ve used both response.cookies to write & request.cookies to retreive but did not work.Kindly help me

  2. #2
    Raj Chilka Guest

    Default RE: Cookies

    Write JavaScript cookies.Before writting a javacookie include setcookie and getcookie functions in it.Hope it works<BR>Eg:<BR>&#060;!-- #include file = SetCookie.js --&#062;<BR>function saveCookie(objForm) {<BR> SetCookie("Coookie1", objForm.Name.value);<BR> cust.Name.value = "";<BR>}<BR>&#060;!-- #include file = getCookie.js --&#062;<BR>function grabCookie(cust) {<BR> if(GetCookie("Cookie1") != null) {<BR> = GetCookie("Cookie1");<BR> }<BR> else {<BR> alert("Please fill in the name field.");<BR> }<BR>}<BR><BR>you will get code for Get and set cookies in MSDN<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts