Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it necessary to declare session in Global.asa?

Status
Not open for further replies.

hxx

Technical User
Oct 26, 2000
10
MY
I am currently working with a project about online dss. The flow of one form to another is continuous, meaning that the information from the first form will be passed to the second, the second will be passed to the third and so on.

I have declared a session in the first form. I could call it from the second form but when come to the third form, the session could not be called anymore. why? Do I have to declare the session in the global.asa? In what condition it is necessary to declare session in Global.asa?
 
Global.asa does not require sessions, you can declare session variables anytime you like, global.asa is useful when you want to set a property or perform an event for one of the four events

-Application Start
-Session Start
-Session End
-Application End
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
Make sure you are actually declaring a session variable.
You do NOT have to put it in global.asa.

Your code should be similar to this:
Session("Session_Parm01") = "whatever"

Then to fetch it in another asp:
dim x_parm01
x_parm01 = Session("Session_Parm01")

The session variables will exist until the browser window is closed or the app times out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top