That looks good
If the cookies between both products are not the same you will be logged off because the cookies must be set to be readable across the products. If you did not set the cookie prefix of bb in photopost then photopost would not know to look for a cookie from
vb called bbuserid it would look for userid.
Hope that explains why this is so important and why we have a FAQ on this issue.