Re: VBScript Logon script
Hi,
If youre using ASP with Visaul Basic Scrinting Model, you can do this one of two ways.
1. Use a Virtual SSI file at the top of your page, above you dec tags, thsi will look like this.
<!--#include virtual="//filepatchway" -->
www.ssi-developer.net
everything you ned to know. NOTE.. If you using ASP. Profusely ignore the conditional SSI. It wont work with ASP as youre not using CGI,or JSP as the base language for the page, also, as ASP uses key value pairings in querystrings, it wont fully recognise these, so youre only left with server variables, which,m is a mute point when youre workig with login scripts
therefor eif a servername\pathway changes or subject varialbe changes, then just referr to the include file, and done. Every time the page loads, it will load the file. Disadvantages. youwill ahve to code idividual files for each subscript, or have a very ling function containing conditionls, test functions or case switchers. Wont slow the application down, just will make for long coding though, but is worthwhile in the long run on a maintainance scope.
2. Use the Global.ASA file. this is similar to the config file or the .DLL files when your writing COM objects, e-commerce or intrnet applicaitons. This is a great option for what you want to do, although requires a great deal of planning and can involve great metamorphosis ot your design structure to integrate such a procedure, but does provide for more scope in secure logons, user checks and post login validation. does require a bit of planning on the developers part and, can drain memorty recourses if not planned properly, or constructed improperly.
www.powerasp.com
search under global.asa-- very good article.
Both solutions to this problem are very visable and useable, solution 1 is the easy option and the more widely used, both on a commercial and enterprise level, especially when writing CGI emulators, or dynamic web pages when not using SHTML or PHP.
solution 2 is a more business development and intranet level solutions as it covers autommated tasks, information collection and distribution of infomration and events,hanlesand exception navigation basedupon th euser input, but does requiere a great deal of development..
As you can see, I have posted good links to sites that cover these. so hoep you get what you need. If you ned mroe input, mail me.
ta
kai :wave: