Results 1 to 3 of 3

Thread: Cookies-Urgent

  1. #1
    Ashy Guest

    Default Cookies-Urgent

    Can anyone see why this does not work when I know that I have a variable stored in the cookie. <BR><BR>variable=request.cookies("Logged")<BR>resp onse.write variable %&#062;<BR>&#060;FONT COLOR=WHITE face="verdana,arial" size=2&#062;&#060;%= variable %&#062;<BR><BR>Also if I try to set more than one variable the cookie is empty.<BR>E.g<BR><BR>This works:<BR>if p_save = "yes" then<BR> Response.cookies("Logged")=p_username<BR> Response.cookies("Logged").expires="May 20, 2010"<BR>end if<BR><BR>This will not work:<BR><BR>if p_save = "yes" then<BR> Response.cookies("Logged")("username")=p_username< BR> Response.cookies("Logged").expires="May 20, 2010"<BR>end if<BR><BR>Either way the request cookies does not work.<BR><BR><BR>

  2. #2
    pari Guest

    Default RE: chk this

    chk this out this works<BR>&#060;%p_username="pp"<BR>Response.cookie s("Logged")=p_username<BR>Response.cookies("Logged ").expires="May 20, 2010"<BR><BR>%&#062; <BR>&#060;% <BR> variable=request.cookies("Logged")<BR>response.wri te variable<BR> %&#062;<BR>&#060;%= variable %&#062;<BR>

  3. #3
    Ashy Guest

    Default RE: chk this

    Did you mean check to see if this works? If so yes the cookies does set with PP in it but the request does not print anything.

Posting Permissions

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