Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default global.asa file

    I want to use a query to active directory that holds a user name, group role
    and group region and stores those values as session variables in the global.asa
    so the values can be used throughout the application for multiple users. I
    need to plug the query to active directory into the global.asa file and setup
    the session variables. I'm not too familiar with the global.asa file and
    wondering if someone has done something like this. Would the basic layout be
    like the following: <!--#include file='Connections/DBConn.asp' --> <script
    language='vbscript' runat='server'> sub Application_onStart ...code...(place
    the code for the query here and then set the session variables equal to the
    recordset values...username, role and region) end sub </script> Thanks for
    any help. -D-

    -D- Guest

  2. Similar Questions and Discussions

    1. DB Connection :: Global.use vs .Inc file?
      I am adapting a login script to suite my specific purposes by require guideance on best practice with regards the following: Should I be...
    2. Can I use database commands in my Global.ASA file?
      Can I use database commands in my Global.ASA file like this...? Sub Session_OnStart Public adoCon Dim recset Set adoCon =...
    3. Question about Global.asa file
      Terry Murray wrote on 09 aug 2003 in microsoft.public.inetserver.asp.db: No -- Evertjan. The Netherlands. (Please change the x'es to dots in...
    4. global.asa file (count sessions)
      It certainly CAN be done in the same basic way with ASP.Net. It would be better to avoid using the Application object, though, and use the...
    5. Is it bad to have a large GLOBAL.ASA file?
      It seems to me that I generally use two types of Functions: Type #1-Ones that any page on my site might use Type #2-Ones that only a single page...
  3. #2

    Default Re: global.asa file

    What errors are you getting?

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004




    Julian Roberts Guest

  4. #3

    Default Re: global.asa file

    I hadn't plugged in the code yet. I am trying to understand how to implement
    the code correctly within the global.asa file. I'm new to using a global.asa
    file and wanted to know if how I was setting up the file was correct? Whether
    I should I use: sub Application_onStart or sub Session_onStart I hope my
    question makes sense. Thanks for your help, -D-

    -D- Guest

  5. #4

    Default Re: global.asa file

    Code looks OK. Give it a whirl and see what happens. Sesion_onstart might
    just do the trick.

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004



    Julian Roberts Guest

  6. #5

    Default Re: global.asa file

    Here's an example of mine

    <script language="VBScript" runat="Server">
    Sub Application_OnStart
    Application("ConnString") = "Provider=SQLOLEDB.1;Password=xxx;Persist
    Security Info=True;User ID=xxx;Initial Catalog=xxx_xxx;Data Source=xxx"
    'do stuff
    End Sub
    </script>


    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139