hello,
Is it possible to read a registry key in ASP, and use the value in an
application via a session variable.
I'm using II6 on windows server 2003.
I'd like to create a key in the registry (under HKLM) and store a value
(connection string for example).
In the ASP application, read the value and store it in a session variable
with global.asa.
How do that and which right to access the regitry (IIS_IUSR) ?
Thanks a lot
fabrice 2 8511
Why on earth would you want to do this??????
You should NEVER store connection info in a session and should additionally, NEVER give IUSR_, write access to your registry!!.
Instead of doing it this way, either use an INI file or database (stored outside of the webroot), or re-think the way your application works (doesn't sound very secure so far).
How do I make my ASP pages more efficient http://aspfaq.com/show.asp?id=2424
IniFiles(2) http://www.planet-source-code.com/vb...=8805&lngWId=4
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"fabrice" <em******@test. com> wrote in message news:#M******** ******@TK2MSFTN GP09.phx.gbl... hello, Is it possible to read a registry key in ASP, and use the value in an application via a session variable. I'm using II6 on windows server 2003. I'd like to create a key in the registry (under HKLM) and store a value (connection string for example). In the ASP application, read the value and store it in a session variable with global.asa. How do that and which right to access the regitry (IIS_IUSR) ? Thanks a lot fabrice
On Mon, 11 Apr 2005 10:48:39 +0200, "fabrice" <em******@test. com>
wrote: Is it possible to read a registry key in ASP, and use the value in an application via a session variable. I'm using II6 on windows server 2003.
I'd like to create a key in the registry (under HKLM) and store a value (connection string for example). In the ASP application, read the value and store it in a session variable with global.asa.
How do that and which right to access the regitry (IIS_IUSR) ?
Yuk!
Okay, maybe a little over-reacting there, but seriously, this is a
security nightmare and there are much better methods. You want to
store a connection sgtring in the registry for use. Why? Use it in
an include. It's easier to program it anyway and you don't need to
give IUSR permission to the registry. If you want, include it in a
global.asa file. But never the registry, that's not the place for
those things and it's certainly not a security risk you wnat.
Jeff This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: sriram pasham |
last post by:
Hi
Could any one tell me how to access(read) a registry key using
javascript from a webpage(ASP page).
Thanks in advance.
Sriram
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
by: George Hester |
last post by:
This location has a parasite checker using javascript. It is in a js file called parasite.js. It is freely available.
http://www.doxdesk.com/parasite/
He\She is the only one I trust on the Net who has such a thing. But their js I believe cannot detect
coolwebsearch parasites which are the most common such parasites on the Net today.
So I'd like to incorporate a check for those parasites in the js.
Any suggestions on how this can...
|
by: Dan Sikorsky |
last post by:
Should application data be read and written to the Registry to persist
state, or should the App.config file be used?
If the Registry should be used, what .NET class reads and writes the
Registry?
If the App.config file should be used, reading a configuration setting is
trivial, but there appears to be no write methtod. Please post a write
method when replying.
--
|
by: Fred |
last post by:
Hello,
Is there a way to read values from the registry as regular instead of
verbatim?
Regards,
Fred
|
by: Slimo |
last post by:
Hello,
I'm searching some example of code (VB) for reading remote registry subkeys
and keys.
Thanks
| |
by: akhare1 |
last post by:
OK, before I start, let me clarify a few things here. This is not the
run of the mill failure to read a registry key while trying to write
to the Event Log.
Here's our setup:
a) IIS 6.0 server w/ SharePoint installed
b) ASP.NET application w/ NTLM authentication running under an account
(application pool) with ADMIN privileges on the local box.
c) We are NOT using impersonation
|
by: Henry Fleming |
last post by:
I have an C# assembly that is supposed to read a registry key:
RegistryKey regCurrentUser = Registry.CurrentUser;
RegistryKey regSoftware = regCurrentUser.OpenSubKey("Software",true);
RegistryKey regFamily = regSoftware.OpenSubKey("MyCompany", true);
RegistryKey regApp = regFamily.OpenSubKey("MySystem", true);
RegistryKey regSet = regApp.OpenSubKey("Set0", true);
m_strDSN = (string) regSet.GetValue("DSN", m_strDSN);
The string value...
|
by: michael.cizmar |
last post by:
What rights do I need to assign to the asp.net account in order for it
to be able to read some settings from the registry.
These settings are not for my able but have information about another
system which I am pulling data from.
Thanks!
Mike Cizmar
|
by: pritipshah |
last post by:
Hello All,
I want to Access Registry from PHP script. I had sreach on net and I got Class for this which is as below.
<?php
class Registry {
private $vars = array();
function set($key, $var) {
if (isset($this->vars) == true) {
throw new Exception('Unable to set var `' . $key . '`. Already set.');
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| | |