Both your forum and your photopost application must be set the same for a cookie to work over both like so.
cookie path /
cookie prefix bb (usually is this but need to check your config file in
vb)
cookie domain .yoursite.com
This makes a cookie sitewide.