Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-21-2004, 08:06 PM   #1
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Environmental variables... permanent fabianrios Fedora 2 10-20-2005 06:06 PM
Environmental Variables danglingpointer Slackware 13 01-06-2005 01:36 AM
environmental variables? blackzone Linux - General 1 08-06-2004 04:44 AM
how to set environmental variables chakkerz Linux - Newbie 8 07-01-2004 04:06 AM
environmental variables mbhenry Linux - General 6 09-18-2003 12:41 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration