Session Variable in Outlook addin

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What would be the best way to set and get a value of a variable while outlook
is running. I want to prompt for a username and pass one time and store it
in a variable somewhere in my outlook addin and then use the variable value
everytime. Then I want to dispose of it once outlook is closed. I could
open a form and make it invisible and store them there but there has to be a
better more elegant way. Is there a session state in outlook simliar to a
session state in asp.net. I am writing my app for Outlook 2003.

Thanks!
 
If you're building an Outlook add-in, you could simply instantiate and set the value of a global variable in your add-in. Once Outlook closes, your add-in disconnects, and the variable goes out of scope.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top