Log in

View Full Version : Forcing Users to use cookies


gosborne
06-23-2006, 07:38 AM
Hi guys

I've just upgraded from YaBB to vb3.5, and it all went very well I'm pleased to say. Now I'm just working on converting the rest of my site to connect to vB.

I'll explain - previously, members could review products and add products to a 'wish list'. This was all done using the YaBB forum cookie for username and password.

Now, I'm trying to update these to work with vB. I can see that the user id is stored in a cookie called bbuserid. But it seems that even though a member is logged in a cookie is not always set.

THrough reading posts on here and also vb.com it seems that you only get a cookie if you hit 'remember me' on login.

Is there any option in the admin side, or a plug in, or adaption I can make to make sure a cookie is set for all users? And if there is one - is there any side effects to doing this?

On YaBB there was an option on login to select how long the cookie would last for, so users could choose from 1 hour to 1 day/week/month/year/permenant. This would be the ideal option, but I'm open to suggestions.

Alternatively, is there any way of getting the userID without looking at the cookies.

thanks in advance

gosborne
06-25-2006, 12:15 PM
Would turning 'remember me' into a hidden field set to 'yes' force cookies, and if so whould there be any drawbacks?
Thanks

El_Muerte
06-26-2006, 07:30 AM
the drawback would be public terminals, people would need to explicitly log out

it's better to just add a session cookie when users login

gosborne
06-26-2006, 07:38 AM
Thanks! My last forum insisted on cookies so my members are used to logging out at the end. I'll add a note to to remind them to do so!

Thanks again