Results 1 to 2 of 2

Thread: Cookies how to do it correctly?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Question

    I have 2 forms when my users register for a conference.
    After the first form they are redirected through a page that sets the cookie then another redirect into the second form. When they move away from the second form how do I just add the second form's data into the already existing cookie without deleting the data that is there already?

  2. #2
    Lively Member
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    115
    Code:
    <%
    Option Explicit
    Dim cookievar
    
    cookievar = Request.Cookies("Cookiename")
    Response.Cookies("Cookiename") = cookievar & new_value
    %>
    Of course, you'll have to replace Cookiename with the name of your cookie, and new_value with whatever you want to insert.

Posting Permissions

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



Click Here to Expand Forum to Full Width