Welcome Guest, Not a member yet? Register   Sign In
Remember me?
#6

[eluser]cartalot[/eluser]
normally websites have to remember something unique to the actual person -- like you go to amazon, and it remembers what you put in your shopping cart 2 weeks ago. the only practical way to do that is with a database. the cookie does not store the cart contents, it just stores an id number.

but you could have a case that is more generic. like lets say you have a website with 5 lessons, and you want the user to know which lesson they have completed. you could write a cookie value like LessonOne = completed

then when the user comes back to the website, you do something like IF cookie value LessonOne = completed
skip to Lesson Two. for that you do not need a database.


Messages In This Thread
Remember me? - by El Forum - 11-17-2012, 11:43 PM
Remember me? - by El Forum - 11-18-2012, 04:09 AM
Remember me? - by El Forum - 11-18-2012, 08:36 AM
Remember me? - by El Forum - 11-18-2012, 09:51 AM
Remember me? - by El Forum - 11-18-2012, 10:07 AM
Remember me? - by El Forum - 11-19-2012, 02:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB