environmental variables
I was wondering if environmental variables are a good way to generate user specific content on an apache web server. I use htaccess for password protection so once a user logs in apache creates a $REMOTE_USER variable, I can then use the username stored in apache to query a mysql database for content related to that user. I'm just curious since I've never read of anyone else doing this if there's anything wrong with this method authentication and dynamic content generation. Everyone seems to be using either cookies or sessions but I've found this method to be very easy. Are there any drawbacks that I should know about?
|