Welcome Guest, Not a member yet? Register   Sign In
How would you get this done?
#2

[eluser]jedd[/eluser]
[url="http://ellislab.com/codeigniter/user-guide/libraries/sessions.html"]Session data[/url] is your friend.

Write a function that tests if a piece of user data exists in your session - if it does not, create it using some method of your choosing - the md5 of the session id, a timestamp, a random string, the actual session id, etc. Obviously the function will not overwrite this piece of userdata if it already exists.

All subsequent functions involved in cart adds, tracking, emailing and so on, will refer to this piece of data.


Messages In This Thread
How would you get this done? - by El Forum - 04-04-2009, 10:28 PM
How would you get this done? - by El Forum - 04-05-2009, 01:51 AM
How would you get this done? - by El Forum - 04-05-2009, 08:20 AM
How would you get this done? - by El Forum - 04-05-2009, 10:31 AM
How would you get this done? - by El Forum - 04-05-2009, 07:28 PM
How would you get this done? - by El Forum - 04-06-2009, 03:22 AM
How would you get this done? - by El Forum - 04-06-2009, 10:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB