Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem with global variables
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with global variables

 Post Reply Post Reply Page  <1 234
Author
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: 22 December 2003 at 9:21am

If you mean something like:

Dim ds As DataSet = Session("MyDataSet")

that is the only way to do it as far as i know.

Back to Top
sabrin514 View Drop Down
Newbie
Newbie


Joined: 19 December 2003
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote sabrin514 Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2003 at 9:35am

Yep, that is what I meant.

Too bad there isn't a mechanism for accessing the properties directly. The session variables are useful, but in my case, since the information in the objects I need change in nearly every page as the user progresses through the wizard style input interface, it seems like a bit excessive.

How does garbage collection work with respect to session variables? Is there any way to destroy them immediately once they are no longer needed, or is this something that only the server can control?

 

 

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: 22 December 2003 at 12:09pm

To unset a session just use

Session("key") = Nothing

Back to Top
 Post Reply Post Reply Page  <1 234

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.