nice thats really helpful! The 2 websites are 1. xbmc-video-server where users can log in to watch videos but did have much settings for administrating users ( mostly need to restrict access to certain pages for different users groups) so downloaded and installed userfrosting (www.userfrosting.com) its a system already coded and easy to restrict access to pages. Idealy i could just strip all the login and user stuff from xbmc-video-server but that seems complicated, i want users to login through userfrosting's system and then click a link to go to xbmc-video-server page (if they have access they will see the link) then go to xbmc-video-server without having to be logged in again.
both "sites" use the same domain and are actually also installed on the same server. Could they share a database in mysql and login to both at once?