Hi all,
i want to create in my asp.net application a custom server variable, so i
can retrieve later in other pages (even asp or perl) with
request.serverv ariables("HTTP_ mycustomvariabl e")
i've tried with response.append header("mycusto mvariable", "somevalue" ) but
this doesn't work, or the variable scope is limited to aspx files, not asp
or perl.
So there is a solution with my problem, event with a external vc++ program?
Thanks,
Michele
Nov 18 '05
15 5761
As I stated, I didn't test, only thought
"Scott Simons" <Scott.Simons.A t.MealMagic.Com .Remove.This> wrote in message
news:63******** *************** ***********@mic rosoft.com... When I tested it, the browser didn't send the header in the request. What did you use to test this?
That is the situation: i have to authenticate many users (1000+) on my
application, so i can't (and don't want) create system accounts; instead i
store users into database, and perform the authentication using asp.net
webforms;
the asp.net application then sets it custom server variable (how?) to the
username authenticated and the perl application knows that the user is
authenticated by checking that server variable: if that server variable is
null no user is authenticated.
So i can't use querystring, or form, or cookie to pass to the perl
application the username authenticated, for security reason, instead i can
use perl to retrieve the server (or environment) variable.
The system is similar to the standard iis authentication, who sets the
LOGON_USER and REMOTE_USER server variables when a user logon, but i can't
use that variables because i'm not using iis authentication.
Hope to have been clear,
Thanks
"John M Deal" <jo******@neces sitysoftware.co m> ha scritto nel messaggio
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. If you can't use cookies then you shouldn't be using header variables either as header variables are easy to find with a simple http sniffer. I'm thinking that you really should go with the suggestion of using a database or some other shared server side storage location for holding this value. Anyone that would go to the trouble of opening your cookie would probably not have too much problem running something like Fiddler (or any number of other tools) to see what is inside the headers for the page. Also from a security standpoint, you probably don't want to pass anything to the client that you are worried about getting hacked, it is better to keep it at the server and use an authentication mechanism to get to it each time it is needed. Or is there some other reason that you prefer a header value over a cookie?
Have A Better One!
John M Deal, MCP Necessity Software
joun wrote: Unfortunately, the variable i need is for security purposes, so a cookie can't be used...
"William F. Robertson, Jr." <theman_at_fdrs ucks.com> ha scritto nel messaggio news:uk******** ******@TK2MSFTN GP11.phx.gbl...
Can you not take the approach of cookies?
bill
"joun" <jo**@nospam.co m> wrote in message news:mM***** *************** @twister1.liber o.it...
Hi all, i want to create in my asp.net application a custom server variable, so i can retrieve later in other pages (even asp or perl) with
request.ser vervariables("H TTP_mycustomvar iable")
i've tried with response.append header("mycusto mvariable", "somevalue" ) but this doesn't work, or the variable scope is limited to aspx files, not asp or perl. So there is a solution with my problem, event with a external vc++
program?
Thanks, Michele
I've already tested that, it doesn't work.
"Jeff Dillon" <je**@removeeme rgencyreporting .com> ha scritto nel messaggio
news:uk******** ******@TK2MSFTN GP10.phx.gbl... As I stated, I didn't test, only thought
"Scott Simons" <Scott.Simons.A t.MealMagic.Com .Remove.This> wrote in message news:63******** *************** ***********@mic rosoft.com... When I tested it, the browser didn't send the header in the request. What did you use to test this?
So you are correct :-)
How are users calling your Perl script, through another browser instance?
Jeff
"joun" <jo**@nospam.co m> wrote in message
news:el******** ************@tw ister1.libero.i t... I've already tested that, it doesn't work.
"Jeff Dillon" <je**@removeeme rgencyreporting .com> ha scritto nel messaggio news:uk******** ******@TK2MSFTN GP10.phx.gbl... As I stated, I didn't test, only thought
"Scott Simons" <Scott.Simons.A t.MealMagic.Com .Remove.This> wrote in message news:63******** *************** ***********@mic rosoft.com... When I tested it, the browser didn't send the header in the request. What did you use to test this?
Why don't you encrypt the value with a well known algorithm and share the
algorithm across you various applications? Then you can store it in a
cookie.
bill
"joun" <jo**@nospam.co m> wrote in message
news:dM******** ************@tw ister1.libero.i t... Unfortunately, the variable i need is for security purposes, so a cookie can't be used...
"William F. Robertson, Jr." <theman_at_fdrs ucks.com> ha scritto nel messaggio news:uk******** ******@TK2MSFTN GP11.phx.gbl... Can you not take the approach of cookies?
bill
"joun" <jo**@nospam.co m> wrote in message news:mM******** ************@tw ister1.libero.i t... Hi all, i want to create in my asp.net application a custom server variable, so
i can retrieve later in other pages (even asp or perl) with
request.serverv ariables("HTTP_ mycustomvariabl e")
i've tried with response.append header("mycusto mvariable", "somevalue" ) but this doesn't work, or the variable scope is limited to aspx files, not asp or perl. So there is a solution with my problem, event with a external vc++ program? Thanks, Michele
I've already thought that solution, but in that case if i use algorithms
suchs as MD5, SHA1, etc. a maliciuos user can guess one username and encrypt
it...
"William F. Robertson, Jr." <theman_at_fdrs ucks.com> ha scritto nel
messaggio news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . Why don't you encrypt the value with a well known algorithm and share the algorithm across you various applications? Then you can store it in a cookie.
bill
"joun" <jo**@nospam.co m> wrote in message news:dM******** ************@tw ister1.libero.i t... Unfortunately, the variable i need is for security purposes, so a cookie can't be used...
"William F. Robertson, Jr." <theman_at_fdrs ucks.com> ha scritto nel messaggio news:uk******** ******@TK2MSFTN GP11.phx.gbl... > Can you not take the approach of cookies? > > bill > > "joun" <jo**@nospam.co m> wrote in message > news:mM******** ************@tw ister1.libero.i t... >> Hi all, >> i want to create in my asp.net application a custom server variable, >> so i >> can retrieve later in other pages (even asp or perl) with >> >> request.serverv ariables("HTTP_ mycustomvariabl e") >> >> i've tried with response.append header("mycusto mvariable", "somevalue" ) >> but >> this doesn't work, or the variable scope is limited to aspx files, not >> asp >> or perl. >> So there is a solution with my problem, event with a external vc++ > program? >> Thanks, >> Michele >> >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MD |
last post by:
I am trying to create a dynamic SQL statement to create a view.
I have a stored procedure, which based on the parameters passed calls
different stored procedures. Each of this sub stored procedure creates
a string of custom SQL statement and returns this string back to the
main stored procedure.
This SQL statements work fine on there own. The SQL returned from the
sub stored procedure are returned fine. The datatype of the variable
that...
|
by: John Lau |
last post by:
Hi,
I am looking at the MS KB Article 306355: HOW TO: Create Custom Error
Reporting Pages in ASP.NET by Using Visual C# .NET
This article describes how to redirect errors to a custom html error page.
All six steps in the article work just fine. Then at the end of the
article, there is a little comment about redirecting errors to an aspx page
(instead of an html page):
|
by: RyanG |
last post by:
when the value that determines the filter is databound??
I am trying to make a DropDownList for a set of data that I use a lot
throughout my project. So I extended the DropDownList to retrieve
from the database a set of data to populate the itself with.
Now to make this control as reusable as possible I also added a new
property to this Custom DropDownList. With the goal being that this
property would be used with the DataView...
|
by: Mike Kelly |
last post by:
I've chosen to implement the "optimistic concurrency" model in my
application. To assist in that, I've added a ROWVERSION (TIMESTAMP) column to
my main tables. I read the value of the column in my select, remember it, and
then use it in the update. It works just fine when I have full control of the
whole process.
I want to do the same for my GridView/SqlDataSource combinations. I
typically select from a view and update the corresponding...
|
by: rithish |
last post by:
Is it possible to set a custom server variable so that it may be used
in the latter part of a script? Say something like $_SERVER =
"myvalue", and then be able to use 'myvar' later.
The reason being that I want some client-side information to flow to
PHP, and the PHP script flow will be controlled depending on this
information.
| |
by: Henrik Dahl |
last post by:
Hello!
I have an xml schema which has a date typed attribute. I have used xsd.exe
to create a class library for XmlSerializer. The result of
XmlSerializer.Serialize(...) should be passed as the value for the parameter
of an SqlCommand for inserting the xml document in a column of a table where
the column is typed to be of the same xml schema.
This all sounds simple, but SQL Server REQUIRES the timezone to be specified
for date values....
|
by: Tom |
last post by:
I've been trying to install the PECL library libssh2 for secure shell2
functions. I'm on a shared webhost which allows custom php
installations that run as a CGI binary. I've been trying to configure
libssh2 but I cannot get the server I'm on to find autoconf... it
originally was not installed on the server, so I downloaded, unpacked,
and installed it successfully to a custom folder in my /home directory
(along with autoheader). ...
|
by: mbasil77 |
last post by:
I'm trying to create a custom server variable in DOTNET. Is there a
way to do this?
I know there are MUCH better/easier ways to store session data ...
However, I'm dealing with a legacy application that relies on this.
Thanks in advance.
mb
|
by: ADN |
last post by:
Hi, I am creating a custom HTTPModule to intercept the request of when
the user is attempting to retrieve a session variable. For instance,
if I set a session variable in my code like so:
session = "Hello World";
When the request for that session variable "myString" is attempted to
be retrieved, I would like to intercept that request like so:
if (Request is for session variable "myString")
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |