Results 1 to 4 of 4

Thread: Cookies

  1. #1
    B.H.Carr Guest

    Default Cookies

    Is a cookie created on the users machine for every ASP page, or only when Session variables are being used?

  2. #2
    Join Date
    Dec 1969

    Default RE: Cookies

    From how I understand it only one cookie (SessionID) is sent to the user when they first arrive at your site, starting a session. This Id cookie is then used to look up any session varibles on the server. Session varibles are not stored on the users machine as cookies. Think of the SessionID as a locker key to the locker stored on the server. Other then that the only other cookies that are sent to the user are one&#039s you send yourself.<BR><BR>Pete

  3. #3
    B.H. Carr Guest

    Default RE: Cookies

    Thanks for the response.<BR><BR>My understanding is that the SessionId is created on the web server, not the client. I almost believe that all Session variables are stored on the web server, and client-side cookies are only instantiated when you specifically use the cookie object and methods.<BR><BR>For instance, if a SessionId cookie is set upon the first visit to an ASP page (merely because it uses ASP), then I should have a cookie on my system right now from hitting this site. But I don&#039t! I also just finished visiting a site that I created and know that it uses Session variables. There is still no cookie on my system.<BR><BR>Any thoughts...Anyone?

  4. #4
    Conrad Guest

    Default RE: Cookies

    You are right that the session ID is created on the server, and that the session variables are all kept on the server.<BR><BR>You do have a session ID cookie. It is a memory-based cookie (disappears when you close the browser), not a disk-based cookie. My guess is that you are assuming that since there is no file on your machine, that you have no cookie.

Posting Permissions

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