rockinaway Posted September 8, 2007 Share Posted September 8, 2007 You know how on forum software they show the new posts, and then mark them as old.. how is this usually done? Is it via cookie, with all the ids stored in an array, or some other way? Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 8, 2007 Share Posted September 8, 2007 either cookies or storing the views a user makes in a database table - the latter will take up A LOT of space on your server unless you do some good periodic cleanups - most places do it with a cookie for this very reason. Quote Link to comment Share on other sites More sharing options...
jscix Posted September 8, 2007 Share Posted September 8, 2007 Theres no one way to do anything, be creative. :-) That cookie file would get enormous after a while. I'd say, you could create a temporary tables and use timestamps. (time stamp of users last login, vs timestamps of posts made) etc.. might work, no? Quote Link to comment Share on other sites More sharing options...
rockinaway Posted September 8, 2007 Author Share Posted September 8, 2007 Well there would be an economical way of storing them as you see huge forums having this facility... I thought it was just be storing the topic ids in a cookie array.. andthat was it.. am I wrong? Quote Link to comment Share on other sites More sharing options...
rockinaway Posted September 9, 2007 Author Share Posted September 9, 2007 Anyone? Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 9, 2007 Share Posted September 9, 2007 use a cookie - just perform some cleanup every now and then - like delete all from over a month ago - that should help keep the cookie size down a bit. if you notice on this forum if you clear your cookies all those post you have read show up as new.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.