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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

global.asa nested?

Status
Not open for further replies.

russland

Programmer
Jan 9, 2003
315
CH
hi, i wanted to know weather i can secure a subfolder by putting another global.asa into that one.

e.g.
/global.asa (1)
/admin/global.asa (2)

in global.asa (2) i'd like to set a condition. if true the user can stay in this directory or any of it's pages. otherwise he'll kicked out.

so, my question. can pages in the admin directory still use application variables from the root global.asa? does it inherit to the global.asa (2)?

thanks
 
Hi...
No you can't do this...
Every virtual directory and also its subfolders, just use the Root Global.asa.
but as a suggestion, you can crreate a file with your code in it and include it on the top of every ASP file in that directory...

----
Harsh words break no bones but they do break hearts.
E.T.
 
Make the subfolder it's own virtual directory. Any application run from a 'root' (virtual) directory will use the global.asa from that directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top