Two questions:
1) Many pages on my site connect to the database to create a grid, etc., and then the client moves on to the next few pages, looking at graphs, etc... It would be nice if, when the user returns to a previous page, e.g., to select a new item, to call up the original page so that there is no need to "re-connect" to the database thereby minimizing the number of times a user does so. The JavaScript code (...history.go(-1)...) to go back one page will only work in special circumstances. Should I keep track of the page numbers and use JavaScript to overcome this? A typical session on my site would have about 12 less db connections if I could send the user back to the original page.
2) Could someone briefly prioritize deallocation, e.g., what "stuff" should be set to nothing, gotten rid of immediately (like a Session state variable) etc... Just a brief list would be nice. My ASP.NET pages create a handful of Session state variables, and dozens of connections to the database (OLE DB); I generally end the code with:
....
myreader.Close()
dbconn.Close()
...just a few ideas on deallocation -- I get the feeling that this might become a future problem if not understood -
1) Many pages on my site connect to the database to create a grid, etc., and then the client moves on to the next few pages, looking at graphs, etc... It would be nice if, when the user returns to a previous page, e.g., to select a new item, to call up the original page so that there is no need to "re-connect" to the database thereby minimizing the number of times a user does so. The JavaScript code (...history.go(-1)...) to go back one page will only work in special circumstances. Should I keep track of the page numbers and use JavaScript to overcome this? A typical session on my site would have about 12 less db connections if I could send the user back to the original page.
2) Could someone briefly prioritize deallocation, e.g., what "stuff" should be set to nothing, gotten rid of immediately (like a Session state variable) etc... Just a brief list would be nice. My ASP.NET pages create a handful of Session state variables, and dozens of connections to the database (OLE DB); I generally end the code with:
....
myreader.Close()
dbconn.Close()
...just a few ideas on deallocation -- I get the feeling that this might become a future problem if not understood -