Jump to content

Forum cookie?


seventheyejosh

Recommended Posts

I'm not sure if this is the right section, as i've never done anything this confusing before.

 

What is the lightest way to hit a server to see if someone has viewed a forum post?

 

The 3 things im thinking:

 

1. Pull everything from a forum views table when the user logs in and store it in a session variable, then check against that. however, im not sure the size limit on one.

 

2. use said table, but just run thru that on every page load. this would be easiest, but would fill up very quickly.

 

3. i was thinking maybe using a cookie, and would really like to go with this route, but im not sure where to start with this. Any suggestions for help or tutorials on cookies?

 

Thanks in advance to all!

Link to comment
Share on other sites

There are a few ways of going about marking forums as read, vBulletin's docs may give you an idea or two.

 

1) Inactivity/Cookie Based - once a user has been inactive for a certain amount of time (the value of the cookie timeout option) all threads and forums are considered read. Individual threads are marked as read within a session via cookies. This option is how all versions of vBulletin before 3.5 functioned.

2) Database (no automatic forum marking) - this option uses the database to store thread and forum read times. This allows accurate read markers to be kept indefinitely. However, in order for a forum to be marked read when all threads are read, the user must view the list of threads for that forum. This option is more space and processor intensive than inactivity-based marking.

3) Database (automatic forum marking) - this option is the same as a previous option, but forums are automatically marked as read when the last new thread is read. This is the most usable option for end users, but most processor intensive.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.