Cookies VS Session Variables

Results 1 to 4 of 4

Thread: Cookies VS Session Variables

  1. #1
    Shaac Guest

    Default Cookies VS Session Variables

    To carry the information of the user, which is better to use in ASP -- cookies or Session variables ???

  2. #2
    PB Guest

    Default RE: Cookies VS Session Variables

    A cookie is better to use when you need to maintain small bits of data for big periods of time like years.<BR>Session (which is also a cookie, after all it is also stored at the visitor&#039s pc) can store arrays that cookies can&#039t but will die as soon as the visitor goes.<BR><BR>There are many ways to maintain user &#039s information like hidden input and querystring.<BR>But all of them must be used properly.

  3. #3
    Shaac Guest

    Default RE: Cookies VS Session Variables

    But, wouldn&#039t it be a problem to use Cookies if the cookies are disabled in the browser??

  4. #4
    Steve Cimino Guest

    Default RE: Cookies VS Session Variables

    Cookies and/or session variables will not work if the user has cookies disabled.<BR><BR>Cookies are better than session variables if you&#039re running a web farm... session vars will not cross web farms.

Posting Permissions

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