Solved

Override CGI variables

Posted on 2006-06-20
4
713 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
hm..I see what you are saying.  Thanks.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

16 Experts available now in Live!

Get 1:1 Help Now