Solved

Override CGI variables

Posted on 2006-06-20
4
715 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now