Don,
You state that certain variables are being reset so then I assume that others
are maintaining their values? Is there any difference in scope between those
that are maintaining their values and those that are not? Is there a
conditional redirect happening in OnRequestStart?
Dave
-O
Thanks all
--
Scott Stewart
ColdFusion Developer
SSTWebworks
4405 Oakshyre Way
Raleigh, NC. 27616
(919) 874-6229 (home)
(703) 220-2835 (cell)
-Original Message-
From: Tom McNeer [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2008 1:17 PM
To: CF-Talk
Subject: Re: onRequestStart
As Greg says, yes, you can certainly check for the variables in
onRequestStart().
In onSessionStart() (which will fire before onRequestStart), do something
like:
Then the variable should always exist (although it would still be good
practice to test for its existence, as you did in your sample
Here's an snippet of my onRequestStart, yeah you can check for session
variables in there..
How often does the variable need to be updated? OnRequestStart will execute
prior to every page request. If it less frequent than that, I would
recommend putting it in the application start. You can use onRequestStart
to check to see if the variable needs to be updated in the application
scope.
Request is not a scope that is available across multiple requests, it has to
be recreated for each page request.
Your looking for session or client.
> -Original Message-
> From: Brian Peddle [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 18, 2006 11:37 AM
> To: CF-Talk
> Subject: on
You are correct, REQUEST is a single-page persisting object. In only
lasts for the duration of the page request and then is destroyed.
SESSION and APPLICATION are cross-page persisting scopes. You might want
to try setting it into SESSION.
..
Ben Nadel
Certified Advanced ColdF
What do your image source look like? Like this?
If so, you just need to change it to:
On 3/7/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
> Head scratcher...
>
> Ok, doing this:
>
>
>
>
>
>
>
> If I have a link with variable like
>
> images.cfm?year=2005
>
> This works exactly lik
>
>
>
>
>
>
> images.cfm/year/2005
OK, I understand what it's doing - the onRequestStart is reading the
images.cfm/year/2005 as a full link - so maybe my fix is to put my "url
decode" script BEFORE the onRequestStart ...
~~
Maybe something like:
Cutter
Tony wrote:
> might be dumb, but this is what i would do.
>
>
> cgi.script_name contains "yourFileName1")>
>
>
>
>
>
>
>
>
>
> tw
>
>
> On 3/1/06, Les Mizzell <[EMAIL PROTECTED]> wrot
might be dumb, but this is what i would do.
tw
On 3/1/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
> I'm using the below to call the header for all the main pages in a site:
>
>
>
>
>
>
>
> Suddenly, I find I've got
11 matches
Mail list logo