Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP - Not closing objects
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP - Not closing objects

 Post Reply Post Reply
Author
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Topic: ASP - Not closing objects
    Posted: 24 July 2005 at 11:44am
Hi all,

If a page doesn't close an object, as I understand it will stay in memory.  I want to just keep a check to make sure this isn't happening, so what I would like to know is which process in the task manager holds the objects?  I just want to check it's not continually rising over a period of time.

Tom
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2005 at 12:09pm
ASP runs as an ISAPI module so I'm guessing inetinfo.exe
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2005 at 1:08pm
Aren't the objects released when the script timesout?

Strangely Microsoft recomends 8 mins but IIS has 20 mins by default, you could also set it lower, but becareful here as some scripts need time to execute.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2005 at 2:15pm
The objects are session based so you can always explicitly close the session which is a good practice if you have a "Logout" button.

Doesn't necessarily mean that the objects are immediately released though. Session cleanup is a background process that happens when the server feels it has the time and inclination.

8-10 minute session timeouts are probably adequate for the vast majority of sites. The exception would be sites where usere may need to enter a lot of info through a form or CMS. Nothing worse than typing a page or two only to find you lost it upon submit because your session timed out.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.