Basically you cannot do that, if you're logged in site A you cannot be logged in site B, but there's a trick, you can pass the cookie or session to site B by links and then inject it.
Example:
<a href="siteB.com/?token=mysession">go to site B</a>
Then you will need to do a config in your siteB to detect sessions and inject them.