Welcome to the Treehouse Community
Looking to learn something new?
Question about persistence?
First I would like to say. You are amazing. You are really good at teaching. Thank you very much for being so awesome.
Question: I would like to understand persistence. So how does pay pal maintain the session. Is it per IP for a certain amount of time? What if I switch to different browser (on the same machine with same IP) or a different machine. I am pretty sure a new cart would be created. What I am looking for is a little bit more explanation on how pay pal maintains the sessions?
Nawazikram Mohammed - Sessions are in short the answer here. To make the session data persistant you will need to store the session data as a cookie perhaps. There are different ways to store the session data, such as cookies or in databases. Take a closer look at the php.net docs Here
It is a lot of data to take in, but should give you a great overview of what is happening in most cases.
Thank you Hampton. Read few lines from the link. It starts to make sense. Will read thoroughly and let you know if I have any questions.