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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Cookies

Cookies

Scheduled Pinned Locked Moved ASP.NET
question
3 Posts 3 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.
  • N Offline
    N Offline
    nidheeshkayal
    wrote on last edited by
    #1

    What is the maximum duration of Cookie thanx in advance

    B 1 Reply Last reply
    0
    • N nidheeshkayal

      What is the maximum duration of Cookie thanx in advance

      B Offline
      B Offline
      bluewavestrider
      wrote on last edited by
      #2

      What's the max amount of time in seconds/minutes/hours you can have? Xactly, infinite. Technically, the client would eventually do a system shutdown or reboot, so you can even set the cookie to last for 10hrs -> nidheeCookie.Expires.Add.Minutes(600); Figure it out buddy! Live in fragments no longer. Only connect.

      B 1 Reply Last reply
      0
      • B bluewavestrider

        What's the max amount of time in seconds/minutes/hours you can have? Xactly, infinite. Technically, the client would eventually do a system shutdown or reboot, so you can even set the cookie to last for 10hrs -> nidheeCookie.Expires.Add.Minutes(600); Figure it out buddy! Live in fragments no longer. Only connect.

        B Offline
        B Offline
        Brent Lamborn
        wrote on last edited by
        #3

        Yep, infinite: here is one year: Dim aCookie As New HttpCookie("myCookie") aCookie.Expires = DateTime.Now.AddDays(365) You can always keep extending the time by setting the cookie again each time they hit your site. "Half this game is ninety percent mental." - Yogi Berra If you can read thank a teacher, if you can read in English, thank a Marine. M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.

        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