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 2508
> 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: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| | |