?
Solved

Override CGI variables

Posted on 2006-06-20
4
Medium Priority
?
734 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
[X]
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
  • 2
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
73Spyder earned 2000 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

719 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