Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To, create a client side customer HTTP header?

Status
Not open for further replies.

StellaIndigo

IS-IT--Management
Sep 19, 2002
118
GB
I need to create a client side HTTP header that will be sent to the server along with the normal HTTP header info.

Anyone know how I can do this. Win2K SP3 and IE6 SP1.

Stella
 
Off the top of my head I would say you would have to embed the data in a form client side and pass it back to the server, or have your links add a querystring to themselves with the appropriate data when clicked. The actual HTTP header is standardized I believe and would not be editable from the html page.
-Tarwn "If you eat a live toad first thing in the morning, nothing worse will happen all day long." - California saying
"To you or the toad" - Niven's restatement of California saying
"-well most of the time anyway..." - programmers caveat to Niven's restatement of California saying
(The Wiz Biz - Ri
 
Thanks for the info, I was looking at query strings to pass back the relevant info, I didn't want the user to see the info passed back though.

The purpose of this exercise is to present differing levels of options and information on the page depending on user and group membership.

I can read back the user name from the server variables but I can't determine if the user is in a particular group. Creating different pages and setting access rights on the server seems a little messy.

Any ideas?
 
You could always use cookies, that way the user doesn't see the data you are requesting/storing, and you can still access it. Or just create an additional set of session variables to hold the group the user is in.
-Tarwn "If you eat a live toad first thing in the morning, nothing worse will happen all day long." - California saying
"To you or the toad" - Niven's restatement of California saying
"-well most of the time anyway..." - programmers caveat to Niven's restatement of California saying
(The Wiz Biz - Ri
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top