About Cookies......
Cookies are small files which are stored on a user's computer. They are designed to hold a
modest amount of data specific to a particular client and website, and can be accessed
either by the web server or the client computer. This allows the server to deliver a page tailored to a
particular user, or the page itself can contain some script which is aware of the data
in the cookie and so is able to carry information from one visit to the website (or related
site) to the next.
Sample java code screen shot for create the cookie.
What are the attributes of cookies.....
- Name : its like a normal name. its only use for identify the cookies
- Domain : it shows the actual domain for this cookie.
- Path : its contain the access permission of this cookie
- Secure flags (send for) : enable encryption connection.
- HttpOnly : prevent from Java script attacks.
- Expire date : after this date we can not connect the sever through this cookie.

Comments
Post a Comment