Forum Moderators: coopster
I have an application that has several users. Each user gets their own database based on the login username. Works well.
Problem is that if user1 logs in via sub1.domain.com and then types sub2.domain.com into browser they have access to sub2.domain.com and that database.
I understand why it is happening, but am fairly new to .htaccess so not sure how to prevent it. But...if PHP can get the username...problem is easily solved.