Quote:
Originally Posted by Yankidank I had some issues when enabling the cookie. I think I set up everything correctly, but I just couldn't get it to work. Right now the pligg demo isn't using the cookie, but is using version 1.10. |
Interesting. I think i know why it won't work on the iforum, but as yet i'm not sure why. When i check the cookies this forum sets, i see:
bbsessionhash
bblastactivity
bblastvisit
Now when i was making this bridge, i based it off my forum cookies, which consisted of all of the above, AND bbuserid and bbpassword. It was the userid and password cookies that i used (if they aren't present, it reverts to the non-cookie sharing version automatically). What i don't know is why they aren't present on this forum. I'll do some testing and see whether there is a particular setting needed to produce those 2 extra cookies.
EDIT: ok, i know the cause of the problem. The extra 2 cookies that i use in this bridge only appear if the user clicks on "remember me". Now the reason i never had a problem is that i was a bit sneaky and in my vB template, i forced all users to be permenantly logged in, by removing the Remember Me checkbox, and replacing it with:
Code:
<input type="hidden" name="cookieuser" value="1" />
So that is the quick way round the problem. The other will be to base the cookie sharing off the bbsessionhash file. I'm sure it can be done, but first i need to find how the bbsessionhash content is derived, and then use that to match to the correct pligg user table row.