request.cookies doesnt work....
Results 1 to 3 of 3

Thread: request.cookies doesnt work....

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    14

    request.cookies doesnt work....

    i am using asp with vbscript. it writes the cookies without a problem..it seems. The cookies always has whatever value i assign it. it just wont read it. im using response & request to read and write the cookies. I checked MSDN and checked previous applicationsto make sure that the sytax is right. it is so perfect is pains me to see it not work. some co workers suggested that i clear out my cookies and my history and then try it. It didnt change a thing. Any ideas?

  2. #2
    Senior Member
    Join Date
    Jan 2003
    Posts
    3,914
    Hey Hey,

    How about you post a snippit of your code here, so we can take a look at exactly what you are doing. Without seeing how you have it coded, it's impossible to tell you what you are doing wrong.

    Peace,
    HT
    IT Blog: .:Computer Defense:.
    PnCHd (Pronounced Pinched): Acronym - Point 'n Click Hacked. As in: "That website was pinched" or "The skiddie pinched my computer because I forgot to patch".

  3. #3
    Junior Member
    Join Date
    Feb 2004
    Posts
    14
    ok,

    here is the "read" code:

    response.Write "<tr><td align=right><b>Your Name:</b></td><td align=left><input type=text name=txtcname ID='txtcname' value='" & request.cookies("cname") & "'></td></tr>"


    And Here is the "write" code:

    response.cookies("cname" ).path = "\"
    response.cookies("cname" ).expires = "12/31/2010"
    response.cookies("cname") = request.querystring("cname")

Posting Permissions

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