Hi-
I'm setting a session var in global ASA like this:
Session("Scope") = GetScopeList( Session("docRootPath") )
Where GetScopeList is a function in global.asa that will return a string
array of folder names
Session("docRootPath") is an application variable that I set earlier.
OK, when I drop Response.Write() calls in the global.asa and force an error
right after, I can determine that there is indeed an array of strings stored
in the session("Scope")
But if I try to get to that session variables in another page (*.asp) it is
always empty.
I have a basic redirect.asp page in the wwroot that redirects to a virtual
folder where my site is.
I really don't know what this could be, what would cause this variable to
get errased?
Thanks,
Steve 6 2498
> OK, when I drop Response.Write() calls in the global.asa
You can't response.write in global.asa! But if I try to get to that session variables in another page (*.asp) it
is always empty.
Are you sure the folder that global.asa is in is marked as an application...
I have a basic redirect.asp page in the wwroot that redirects to a virtual folder where my site is.
global.asa will apply to folders that are marked as applications. If you
virtual folder is marked as an application, it will start its own session,
rather than inheriting the one you started in the root...
A
> sk: yes you can. It makes no sense, but you can.
In what method would you do this? How would the client ever see it?
global.asa is 'touched' but not actually loaded by the client, not presented
to the browser, etc... maybe you could show an example of how you use
response.write in global.asa.
A
debugging.
When you have functions in your global.asa and you need to see either where
execution is failing OR a value of a variable, throw in a Response.Write()
and things are much easier. I'm surprised that no one sees the benefit of
that.
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:ey**************@TK2MSFTNGP10.phx.gbl... Oddly enough, the response.write is rendered on the page you open in the browser. Why you would want to do this, though, is beyond me.
Bob Lehmann
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message news:uw**************@TK2MSFTNGP10.phx.gbl... sk: yes you can. It makes no sense, but you can.
In what method would you do this? How would the client ever see it? global.asa is 'touched' but not actually loaded by the client, not
presented to the browser, etc... maybe you could show an example of how you use response.write in global.asa.
A
> Oddly enough, the response.write is rendered on the page you open in the browser. Why you would want to do this, though, is beyond me.
Right, but within which sub? For example, I know response is invalid in
session_onend. I haven't really explored the other subs because I abandoned
global.asa long ago...
I place in session onstart.
Bob
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:el**************@tk2msftngp13.phx.gbl... Oddly enough, the response.write is rendered on the page you open in the browser. Why you would want to do this, though, is beyond me. Right, but within which sub? For example, I know response is invalid in session_onend. I haven't really explored the other subs because I
abandoned global.asa long ago...
uh yeah, I know response.write is useful for debugging. It's unusal to use
global.asa in the manner you are using it.
Bob Lehmann
"stever" <sk****@stever.com> wrote in message
news:ei**************@tk2msftngp13.phx.gbl... debugging. When you have functions in your global.asa and you need to see either
where execution is failing OR a value of a variable, throw in a Response.Write() and things are much easier. I'm surprised that no one sees the benefit of that.
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message news:ey**************@TK2MSFTNGP10.phx.gbl... Oddly enough, the response.write is rendered on the page you open in the browser. Why you would want to do this, though, is beyond me.
Bob Lehmann
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message news:uw**************@TK2MSFTNGP10.phx.gbl... > sk: yes you can. It makes no sense, but you can.
In what method would you do this? How would the client ever see it? global.asa is 'touched' but not actually loaded by the client, not presented to the browser, etc... maybe you could show an example of how you use response.write in global.asa.
A
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Avinash Korwarkar |
last post by:
Hi Guys,
I am using sessions to store the login name and then retrieve it on
every page. Here are the details of the php settings.
1) I have PHP 4.2.2 installed on a Apache 1.3.27 server.
2)...
|
by: Mimi |
last post by:
Hello,
I am having trouble using the session vars in
PHP 4.3.9
OS: Win XP Prof
Web Server IIS (is local and there are no links to other servers from
the web pages I work on)
Browser: IE 6.0
...
|
by: James |
last post by:
Hi
I am having some trouble getting a asp page to load. Im a
noob to the asp side. I have followed knowledege base
Article 301305. I am running 2000 adv, IIS 5.0
I have the following...
|
by: Brian Brinks |
last post by:
I am having some trouble with seesion variables.
I have just moved hosting companies to Brinkster.com but have been
having problems with my applications holding session.
They say they can't...
|
by: Brian Schloz |
last post by:
Hello,
I just thought I'd share my particular situation regarding session
state periodically being "lost" in my asp.net app. I read with
interest all of the posts regarding lost session state...
|
by: Paul Daly (MCP) |
last post by:
I'm trying to write a log file that captures the referring url if the request is a new session, and captures a querystring value if the user is browsing between pages on the website.
When using...
|
by: Adrian Parker |
last post by:
We have a website that works everywhere but on a few PCs on this one site..
Asp.Net 1.1
Server = Windows 2003
Client = XP
In the web.config we use - cookieless="false"
in the browser settings...
|
by: aroraamit81 |
last post by:
Hi,
I am facing a trouble. I have some Session variables in my code and
somehow my session variables are getting mixed up with other users.
For example User A has access to 10 companies and...
|
by: =?Utf-8?B?TWljaGFlbA==?= |
last post by:
I am using asp.net 2.0 and trace session.start and session.end. Sometimes I
found that session.end is not catched. Is it a normal behavior, or why it
happens?
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| | |