Solved

Override CGI variables

Posted on 2006-06-20
4
721 Views
Last Modified: 2013-12-24
We are using the CGI Variable of Authenticated user for a lot of our applications.  Is there a way to override that with a specific value so that we could "trick" the page into thinking someone else is logged in.  Basically, there is one person getting errors that no one else is getting.  I'd like to "log in" as that person and see what happens.

Thanks
0
Comment
Question by:YLaw
  • 2
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
73Spyder earned 500 total points
ID: 16944982
YOu should be able to treat the cgi as just another struct.

<cfset cgi.AUTH_USER= "new value">

These would have to be set on every page to do this though.  Below is a list of the cgi's   Just in Case...

AUTH_TYPE
AUTH_USER
CF_TEMPLATE_PATH
CONTENT_LENGTH
CONTENT_TYPE
CONTEXT_PATH
GATEWAY_INTERFACE
HTTPS
HTTP_ACCEPT
HTTP_ACCEPT_CHARSET
HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE
HTTP_CONNECTION
HTTP_COOKIE
HTTP_HOST
HTTP_KEEP_ALIVE
HTTP_REFERER
HTTP_USER_AGENT
PATH_INFO
PATH_TRANSLATED
QUERY_STRING
REMOTE_ADDR
REMOTE_HOST
REMOTE_IDENT
REMOTE_USER
REQUEST_METHOD
SCRIPT_NAME
SERVER_NAME
SERVER_PORT
SERVER_PORT_SECURE
SERVER_PROTOCOL
SERVER_SOFTWARE
0
 

Author Comment

by:YLaw
ID: 16945058
ouch.  So it's not like I could put that on one page that they hit and then it will override it for the session?
0
 
LVL 9

Expert Comment

by:73Spyder
ID: 16945131
I do not think so.  I am fairly sure that they are set on each page by the server.

Now, if your code only checks the cgi in one place, then you might be able to just do it once.
0
 

Author Comment

by:YLaw
ID: 16945178
hm..I see what you are saying.  Thanks.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 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