Results 1 to 3 of 3

Thread: Cookies

  1. #1

    Thread Starter
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274
    Hi,
    How can I set and retrieve a cookie on a users compueter through my IIS application?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    If you use ASP then it's really easy.
    Code:
    'To set cookies (for example UserName and Password)
    Response.Cookies("UserName") = "John Doe"
    Response.Cookies("Password") = "1234"
    
    'To retrieve Cookies (for the same UserName and Password)
    Response.Write Request.Cookies("UserName")
    Response.Write Request.Cookies("Password")

  3. #3

    Thread Starter
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274
    Thanks!!!

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