Insight to Cookies: Advanced Programming Concepts
Nov-6-2009 By
Here’s more info on cookies that you may want to know -
• When the cookie is requested for the first time, the cookie is stored using the set-Cookie entry in the header of the response from the server.
• Set-cookie : name= value; expires = Date;Path=PATH;domain=DOMAIN;secure
Optional attributes are –
• Expires =Date
• Path=PATH ( path of the URL for which the cookie is valid)
• Domain – Domain specifies the domain for which the cookie is valid.
• Secure specifies that the cookie has to be transmitted only over a secure link.
• Exampleofcookies
Posted in: Advanced Programming Concepts, JavaScript
Add A Comment