I would suggest you first check your cookie setup and make sure phpbb and photopost match explicitly with regards to domain and prefix and path.
Your domain should be in format .domain.com so the cookie is not dropped when going from
www.domain.com to domain.com