473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Global.asa and EnableSessionState

Hello Everyone,

I was wondering if the following line at the top of my global.asa file is
legal:

<SCRIPT @ENABLESESSIONSTATE = FALSE LANGUAGE = VBSCRIPT RUNAT = SERVER>

It does not produce any errors when I access my site, but since I am mixing
an @ directive with the Language and Runat statements, I just wanted to be
sure. I was also wondering if having the EnableSessionState=False directive
even needs to be included inside the Global.asa file.

At the top of all my .asp files, I have the following:

<%@ENABLESESSIONSTATE = FALSE LANGUAGE = VBSCRIPT%>
<%Option Explicit%>

If I have the EnableSessionState=FALSE in my Global.asa file (and if it's
legal), do I need to have this same statement at the top of all of my .asp
files, or will the setting propagate through the entire application?

Also, I've been wondering why I seem to have to separate the Option Explicit
into other <%%> rather than being able to have all of these statements
within the same <%%> block.

TIA, :)
~Brad
Jul 19 '05 #1
0 2052

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Baughman | last post by:
I am attempting to move my asp.net application to Windows Server 2003 with Windows Sharepoint Services (beta) installed. The application was working fine in 2000 with Sharepoint Team Services...
0
by: Brad | last post by:
Hello Everyone, I was wondering if the following line at the top of my global.asa file is legal: <SCRIPT @ENABLESESSIONSTATE = FALSE LANGUAGE = VBSCRIPT RUNAT = SERVER> It does not produce...
4
by: abcd | last post by:
I have an asp page in which first line is <@ ENABLESESSIONONSTATE = false %> I want to stop the sessions for this page. I have global.asa page whose code is like this <SCRIPT RUNAT=Server...
2
by: Marco Gerlach | last post by:
Hello, on IIS6 running on Win2003 server std. I get this error "enablesessionstate Page directive is needed to use the Session object" my web.config looks like this:
6
by: Martin | last post by:
Hi, I had a page the other day for which the compiler just wouldn't recognize the fact that I had enabled session state in every possible way. I ended up moving the code that dealt with the...
3
by: David Lozzi | last post by:
Error: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive at line 6 Line 4: <script RUNAT="SERVER"> Line 5: ...
3
by: Sean W. | last post by:
I keep getting this error. "Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive" This occurs when I try to add a...
1
by: user_me | last post by:
I have a page with function 'myFunction()' that contains a call to window.setTimeout("myFunction()", delay, "javascript") to invoke itself every 'delay' minutes. The function 'myFunction()' uses...
6
by: KevinGravelle | last post by:
What is wrong with this picture? I'm trying to set my shopping cart text on my home page using the following function that is executed when the class is constructed: protected string...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.