Both Wordpress and Joomla have plugins that will take care of this. Edwiser Bridge for Wordpress and Joomdle for Joomla. If your other site is on either of those platforms, that should take care of it.
Authentication
How to make user auto login in MOODLE
This discussion has been locked so you can no longer reply to it.