Jump to content


Maintaining user selections throughout session


  • You cannot reply to this topic
1 reply to this topic

#1 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 12 March 2008 - 11:10 PM

I'm looking at building a site where we'll need to keep track of the selections a visitor makes as they move around the site. Are there any reasons this shouldn't just be added to the PHP $SESSION variable? (I think I can encode all the data needed into three or four strings, non likely to exceed 200 characters.)

Additionaly, if we decided we needed the data to be retained from one session to another, am I right in thinking a locally stored cookie is the best approach? If so, are there any etomite functions for handling cookies? (At present I don't think this is a requirement.)

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 12 March 2008 - 11:52 PM

It doesn't take much code to manage cookie data and could be handled by placing snippet calls at the top and bottom of your page template as one method of handling the information... The same snippet could be called to handle all actions via snippet call parameters...

If you don't need to save the data between visits then session data would suffice...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users