RE: onRequestStart > onRequest variable assignments

2014-12-29 Thread David Phelan
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

RE: onRequestStart()

2008-03-20 Thread Scott Stewart
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

Re: onRequestStart()

2008-03-20 Thread Tom McNeer
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

Re: onRequestStart()

2008-03-20 Thread Greg Morphis
Here's an snippet of my onRequestStart, yeah you can check for session variables in there..

Re: onRequestStart

2006-10-18 Thread Teddy Payne
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.

RE: onRequestStart

2006-10-18 Thread loathe
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

RE: onRequestStart

2006-10-18 Thread Ben Nadel
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

Re: onRequestStart problem with url variables

2006-03-07 Thread Raymond Camden
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

Re: onRequestStart problem with url variables

2006-03-06 Thread Les Mizzell
> > > > > > > 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 ... ~~

Re: onRequestStart question.....

2006-03-02 Thread Cutter (CF-Talk)
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

Re: onRequestStart question.....

2006-03-01 Thread Tony
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