[eluser]Ben Edmunds[/eluser]
It's definitely possible.
You can search and see a lot of posts about integrating with phpBB, getting the session is the tricky part but it's do-able.
I wouldn't imagine wordpress being much more difficult but I've never done it so I can't say for sure.