Link to home
Start Free TrialLog in
Avatar of InNoCenT_Ch1ld
InNoCenT_Ch1ld

asked on

Beginner Question: ----- Cookies

1. What is a cookie? It is generated by the server when a session is created to store the session (correct?), but it takes no physical form (physical file on HDD)? Is it the same as the cookies files that I found under internet temp folder? What are the different?

2. How to make one cookie live for maybe, 3-6 months? possible?

3. What is it normally used for? any example (brief one)?

Tks
SOLUTION
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of InNoCenT_Ch1ld
InNoCenT_Ch1ld

ASKER

the link for
Can cookies only be set in terms of seconds? What if I want to set one for a year?
can't be open..
For question#1:  Is it the same as the cookies files that I found under internet temp folder? What are the different?


For question#3: I would like to have some example like the kind of scenario that you would use cookie.

Tks again ;-)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
suprapto45, tks for your respond :-) but i have some question about your comment
"Have you ever met the login page that has "Remember me" checkbox? That is using cookie"

how the server know that this is the same client if the request does not come in under one session.. maybe the user visited the page yesterday... how the server know that he is the one that come back again today?
and where's this cookie (that remember the name) stored at?

Tks
Cookie has nothing to do with session. Just think this way. Cookie will be stored in client-side not on server-side (I am not sure whether it is stored in the temp folder or not). So once you open the same website again, the site will check is there any existing cookie in the client-side and load it necessarily.

David  
I see...

Tks ;-)
;)

Glad I could help

David