Results 1 to 2 of 2

Thread: Cookie expiration time

  1. #1

    Thread Starter
    Hyperactive Member Radames's Avatar
    Join Date
    Feb 2001
    Location
    Tech Tropics
    Posts
    360

    Question Cookie expiration time

    I got the hang on cookie dictionaries and all that, but am still a bit fuzzy on working with expiration times. How do I make a cookie expire after 2 or 3 minutes?

  2. #2
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Arrow

    Get the expiry date
    expDate = Day(now) & "/" & Month(now) & "/" & Year(now) & " " & Hour(now) & ":" & Minute(now) + 2 & ":" & Second(now)

    Then its Response.Cookies("mycookie").Expires = expDate

    Should expire your cookie in 2 minutes.


    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

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