473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

remove connection information from the global.asa file

Hi !

Here's my problem:

I have actually an asp web site which use the global.asa file to connect to
the database but for security reason, I want to put username and password
information (or the complete connection string) in a seperate file so only a
special user could read these informations.

Is someone knows how to do this ?

Thanks very much

Sly
Apr 26 '06 #1
4 2570
=?Utf-8?B?U3lsdmFpbg==?= wrote on 26 apr 2006 in
microsoft.public.inetserver.asp.general:
Here's my problem:

I have actually an asp web site which use the global.asa file to
connect to the database but for security reason, I want to put
username and password information (or the complete connection string)
in a seperate file so only a special user could read these
informations.

Is someone knows how to do this ?


I don't understand.

Global.asa is unreadable from the outside,
just like the seperate file you wanted,
and both are readable for the site programmer by ftp or whatever.

================

If you want you can put an include file in the top of all
..asp files you need to access the db in:

<!--#include virtual ="/dir/openDb.asp"-->


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 26 '06 #2
Hi !

Thanks for your answer. In fact, the reason why I want to separate
connection information from the global.asa file is because even the developer
should not have access to username and password, only one user (implementer)
and the application. Developer can have access to global.asa code without
being able to see the username and password.

I don't know if it is possible but if so, I'd like to have username and
password info in only one separate file and affect the value to my connection
string in global.asa.

Thanks for your answers.

"Evertjan." wrote:
=?Utf-8?B?U3lsdmFpbg==?= wrote on 26 apr 2006 in
microsoft.public.inetserver.asp.general:
Here's my problem:

I have actually an asp web site which use the global.asa file to
connect to the database but for security reason, I want to put
username and password information (or the complete connection string)
in a seperate file so only a special user could read these
informations.

Is someone knows how to do this ?


I don't understand.

Global.asa is unreadable from the outside,
just like the seperate file you wanted,
and both are readable for the site programmer by ftp or whatever.

================

If you want you can put an include file in the top of all
..asp files you need to access the db in:

<!--#include virtual ="/dir/openDb.asp"-->


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Apr 26 '06 #3
In classic ASP, this is not possible without using a COM dll, perhaps
created in VB6.

Sylvain wrote:
Hi !

Thanks for your answer. In fact, the reason why I want to separate
connection information from the global.asa file is because even the
developer should not have access to username and password, only one
user (implementer) and the application. Developer can have access to
global.asa code without being able to see the username and password.

I don't know if it is possible but if so, I'd like to have username
and password info in only one separate file and affect the value to
my connection string in global.asa.

Thanks for your answers.

"Evertjan." wrote:
=?Utf-8?B?U3lsdmFpbg==?= wrote on 26 apr 2006 in
microsoft.public.inetserver.asp.general:
Here's my problem:

I have actually an asp web site which use the global.asa file to
connect to the database but for security reason, I want to put
username and password information (or the complete connection
string)
in a seperate file so only a special user could read these
informations.

Is someone knows how to do this ?


I don't understand.

Global.asa is unreadable from the outside,
just like the seperate file you wanted,
and both are readable for the site programmer by ftp or whatever.

================

If you want you can put an include file in the top of all
..asp files you need to access the db in:

<!--#include virtual ="/dir/openDb.asp"-->


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Apr 26 '06 #4
Sylvain wrote:
Thanks for your answer. In fact, the reason why I want to separate
connection information from the global.asa file is because even the
developer should not have access to username and password, only one
user (implementer) and the application. Developer can have access to
global.asa code without being able to see the username and password.

I don't know if it is possible but if so, I'd like to have username
and password info in only one separate file and affect the value to
my connection string in global.asa.


Aside from Bob's suggestion, you can deny your developer access to your
production environment. Allow him a development environment, complete with
test databases (and test connection parameters).

Even in this scenario, a clever developer might try to embed something that
will reveal the DB credentials to him once his code is moved over. You might
mitigate this by creating a custom class/function that returns an open
connection without exposing any credentials.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Apr 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4474
by: fruddy | last post by:
Hi everybody, I currently have my SQL Server connection string in an Application variable in the global.asa. Could that be a security risk? I have heard that with Cold Fusion, when there is a...
2
3482
by: Bryan | last post by:
Hello, I'm just starting to develop in asp.net and i have a question about using a database connection globally in my app. I have set up the procedures for getting all my connection string info...
7
2454
by: Lau Lei Cheong | last post by:
Hello, Actually I think I should have had asked it long before, but somehow I haven't. Here's the scenerio: Say we have a few pages in an ASP.NET project, each of them needs to connect to...
5
23979
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
3
14715
by: frothpoker | last post by:
Guys, I'm sure this has been asked a million times but I can't seem to formulate a google search that returns what i'm looking for. I've go a dev and live environment. Currently the DB...
16
2843
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
20
3242
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
9
4749
by: fniles | last post by:
I am using VB.NET 2003 and SQL 2005. To use connection pooling and avoid the error "There is already an open DataReader associated with this Connection which must be closed first." , I understand...
3
2091
by: ninjamonkey | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
0
7202
marktang
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,...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
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...
0
7458
tracyyun
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...
0
5578
agi2029
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,...
1
5013
isladogs
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...
0
4672
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...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.