User Authentication

Posted on 2005-03-16
Medium Priority
Last Modified: 2013-12-25
I'd like to setup user authentication using linux/apache/cgi/perl using
the authent method from apache (already done) .

How can i get the current logged in username via cgi ?

would need to have it for further logics (read,write,logging etc)

Many thanks
Question by:MKrauss
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 51

Accepted Solution

ahoffmann earned 375 total points
ID: 13559786
> How can i get the current logged in username via cgi ?
are you talking about BasicAuth (like .htaccess)?
 in perl something like:

use CGI;
use HTTPD::Authen;
$q=new CGI;

Author Comment

ID: 13564490
Great !
many thanks

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question