Zend certified PHP/Magento developer

Stop redirect on session to store view

When I log in as customer on store view B, then visit store view A, most links I click on store view A result in a redirect to store view B. It only changes the domain name, not the URI using a 302. It’s as Magento knows I’ve been using the other store view and keeps preference for it. It stops doing this if I clear cookies.

The store views are in the same ‘website’ but in a different ‘store’.

How can I stop this from happening?