setting a server variable?

J

Jack Vamvas

I know that you can do : Request.ServerVariables("QUERY_STRING") but can
you actually set a serverVariable?
I know that sounds counter intuitive , but is it possible, via vbscipt/asp?

--

Jack Vamvas
___________________________________
The latest IT jobs - www.ITjobfeed.com
<a href="http://www.itjobfeed.com">UK IT Jobs</a>
 
B

Bob Barrows [MVP]

Jack said:
I know that you can do : Request.ServerVariables("QUERY_STRING") but
can you actually set a serverVariable?
I know that sounds counter intuitive , but is it possible, via
vbscipt/asp?

No. Anything contained by the Request object is read-only. What's wrong with
session or application variables?
 
M

McKirahan

Jack Vamvas said:
I know that you can do : Request.ServerVariables("QUERY_STRING") but can
you actually set a serverVariable?
I know that sounds counter intuitive , but is it possible, via
vbscipt/asp?

You can set an Environment Variable in the registry...
 
M

McKirahan

Anthony Jones said:
Me thinks you have your tongue in cheek ;)

Not so.

(Windows XP) set the System Environment Variable
via Control Panel + System + Advanced + Environment Variables.

(Windows 98) set the Volatile Environment Variable
via scripting to create "HKCU\Volatile Environment\{variable}".
 
A

Anthony Jones

McKirahan said:
Not so.

(Windows XP) set the System Environment Variable
via Control Panel + System + Advanced + Environment Variables.

(Windows 98) set the Volatile Environment Variable
via scripting to create "HKCU\Volatile Environment\{variable}".

Yes, yes I know it's possible. It's just such a really bad idea I thought
you were joking.

Why would you want to do that instead of using the application/session
object?

Or do you imagine that system environment variables some how equate to
Request.ServerVariables?
 
M

McKirahan

[snip]
Yes, yes I know it's possible. It's just such a really bad idea I thought
you were joking.

Why would you want to do that instead of using the application/session
object?

Or do you imagine that system environment variables some how equate to
Request.ServerVariables?

You're correct.

I didn't notice the group when I responded to the post.
I was thinking about a WSH / VBScript solution not ASP.

My bad...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,116
Messages
2,570,700
Members
47,277
Latest member
GYZMilton9

Latest Threads

Top