![]() |
Need pointers on the best method to do this....
Ok, I want to attach a variable to each user called 'userage'. When a user first enters the site he will type in an age and then whatever page he visits, be it the forumhome, showthread or forumdisplay, this variable will follow with him, this should be functional with logged in and non logged in users.
What would be the best way to do this, I was thinking that would be something a cookie would do, but I dont really know how the cookies system with vB works. Before I set out and try to learn it the vB system I wanted to get any pointers/ideas on hat the best way to do this variable passing throughout the forum for each individual user for each session? thanks! |
One possibility: [How-To] Extend and use the Session Table Effectively
Not 100% sure if it will still apply to the latest version of vBulletin but you may want to try messing around with it on a dev. board or something. |
Wow this sounds perfect! Thanks for the find, i'm going to play around with this tonight, the only real drawback I can think of with this method is that if a user goes idle for a while (out of cookie time) then comes back he would have to re-enter the info I guess even tho his browser was still open and untouched. I wonder if there is a workaround to that issue....
|
I don't think so because otherwise you'd have to store data based on IP and if you doing this for all guests your database is going to start getting fairly big quite soon. I think the session method is just fine, the session timeout is a reasonable period anyway.
|
All times are GMT. The time now is 03:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|