Results 1 to 2 of 2

Thread: application, session or single page data connection

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982

    application, session or single page data connection

    The latter seems a bit excessive to me. This is probably a typical beginners question that gets asked a thousand times.

    I'm just wondering if anyone has any suggestions on the best place to create a data connection. Should it be at application, session or on each individual page.

    Thanks


    Things I do when I am bored: DotNetable

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Don't store ADO objects in the session object or the application object. The best thing to do is use an ActiveX dll that does your connecting and database activity.

    When you store objects in the session object for example, it takes server resources to store it. But it will continue to store the object(s) until the session times out if the user browses to another site or just closes the browser. Multiply this by the number of concurrent users and you can see the potential problem.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width