Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. session & cookie

session & cookie

Scheduled Pinned Locked Moved C#
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arefeh Haghpnah
    wrote on last edited by
    #1

    Hi every Body. :-D please tell me why do you we use cookie and session in web site? thank you. :)

    T 1 Reply Last reply
    0
    • A Arefeh Haghpnah

      Hi every Body. :-D please tell me why do you we use cookie and session in web site? thank you. :)

      T Offline
      T Offline
      The Man from U N C L E
      wrote on last edited by
      #2

      Cookies are used to persist data on the client so that it can be reused by your web page when it is next loaded. Session variable are similar, but on the server end. However as these are linked to a particular session ID they will go away after a bit when the client leaves your web site as they are stored in memory. However, cookies are saved to disk, and may be deleted by the end user. Many sites do not use either, and don't need to. It all depends what you want to do, and how you want your web app to work.

      If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

      A 1 Reply Last reply
      0
      • T The Man from U N C L E

        Cookies are used to persist data on the client so that it can be reused by your web page when it is next loaded. Session variable are similar, but on the server end. However as these are linked to a particular session ID they will go away after a bit when the client leaves your web site as they are stored in memory. However, cookies are saved to disk, and may be deleted by the end user. Many sites do not use either, and don't need to. It all depends what you want to do, and how you want your web app to work.

        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

        A Offline
        A Offline
        Arefeh Haghpnah
        wrote on last edited by
        #3

        thank you mr.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups