Results 1 to 5 of 5

Thread: Session_OnStart

  1. #1
    asdf Guest

    Default Session_OnStart

    When is the Session_OnStart event fired? <BR>Upon the first request for an .asp document from an application by a client. OR<BR> Upon the first request for an .htm or .asp document from an <BR>application by a client. <BR>

  2. #2 Guest

    Default RE: Session_OnStart

    It is fired when a new client session is started.<BR><BR>E.G when you connect to the website a new session is started for you and you are assigned a session ID.<BR><BR>

  3. #3
    asdf Guest

    Default can Bill or JD kindly confirm this

    can Bill or JD kindly confirm this

  4. #4
    Join Date
    Dec 1969

    Default RE: Session_OnStart

    On the first request for an ASP document (or anything else that invokes the ASP engines). Simply pulling an HTML file from the server does not begin a &#039session&#039 (i.e. there is no ASPSESSIONIDxxxxx created until you run an ASP page)<BR><BR>This can be verified by creating this event within your global.asa:<BR><BR>Sub Session_OnStart<BR>&nbsp;&nbsp;&nbsp;&nbsp;session ("start") = request.servervariables("PATH_TRANSLATED")<BR>End Sub<BR><BR><BR>and then requesting (from a totally new run of your browser) an HTML page, then requesting an ASP page that shows the session variable entitled "start". It will always show the name of that script, rather than the initial HTML page. You can also (from the new run of your browser) try to run any ASP page on your server first, then run the script that shows the session var, and you will see that first script&#039s name, instead.<BR>

  5. #5
    Join Date
    Dec 1969

    Default JD is right...and more...

    You can easily confirm this for yourself.<BR><BR>Run "regedit" on your machine. Ask to FIND "ASP Session". When you find it, look at the name of the "InprocServer32" (the DLL) in which that object is defined. Voila! It is in "asp.dll".<BR><BR>Now, you can perfectly happily and well DELETE "asp.dll" from your machine and the Web server will continue to cheerfully serve up HTML pages. <BR><BR>In short, the Web server can&#039t possibly know anything at all about Session objects because they aren&#039t built into it--they *are* built in to the ASP dll and thence into the ASP engine.<BR><BR>Period. End of statement.<BR><BR>"regedit" can be the source of *lots* of useful information if you start exploring it. Have fun doing so.<BR><BR>

Posting Permissions

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