Re: Running code just one time

2002-03-20 Thread Sharon Diorio

Oops, My bad.

Should be 

Need the quotes.  ::: hanging head in shame :::

Sharon DiOrio

- Original Message - 
From: "phumes1" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 11:06 AM
Subject: Re: Running code just one time


> I get the following error...
> 
> Error Occurred While Processing Request
> Error Diagnostic InformationAn error occurred while evaluating the
> expression:  REQUEST.isLoggedIn = IsDefined(SESSION.isLoggedIn)Error near
> line 23, column 11. Error resolving parameter SESSION.ISLOGGEDIN The
> session variable ISLOGGEDIN does not exist. The cause of this error is very
> likely one of the following things: The name of the session variable has
> been misspelled. The session variable has not yet been created. The session
> variable has timed out.The error occurred while processing an element with
> a general identifier of (CFSET), occupying document position (23:5) to
> (23:62).Date/Time: 03/20/02 11:06:35
> Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461)
> 
> 
> 
> At 10:43 AM 3/20/2002 -0500, you wrote:
> >Here is the exact code you want.  You should put it in the Application.cfm
> >insted of the index.cfm so it gets run regardless of what page the user
> >starts out on (they might have a hyperlink to another page).
> >
> >
> > 
> > 
> >
> >
> >
> > 
> > [insert custom tag call here]
> > 
> > 
> > 
> >
> >
> >Now, when the page runs again, the session variable "isLoggedIn" will
> >prevent the code from running everytime.
> >
> >If you're not clear on the concept of session scope or the
> >application.cfm, please let us know.  It makes all the difference for
> >understanding how this might work.
> >
> >Sharon DiOrio
> >- Original Message -
> >From: "phumes1" <[EMAIL PROTECTED]>
> >To: "CF-Talk" <[EMAIL PROTECTED]>
> >Sent: Wednesday, March 20, 2002 8:53 AM
> >Subject: RE: Running code just one time
> >
> >
> > > At 07:31 AM 3/20/2002 -0800, you wrote:
> > > >Then what you need to do is set this value -  > > >"#CGI.AUTH_USER#"> to a session variable.
> > > >
> > > >Then on your index.cfm, just check for that session var and if it has
> > > >anything in it.. if it does do not run the tag, if there is not any value
> > > >then run the tag and populate the session var..
> > > >
> > > >Make sense?
> > >
> > > No. It's not the cgi.auth_user I want to check. I think I'm really messing
> > > this up...
> > >
> > > All I want to do is run a piece of code when the user accesses the web site
> > > (index.cfm) for the first time
> > > after username/password authentication. When the index.cfm is run anytime
> > > afterwards the code is ignored.
> > >
> > >
> > >
> > > >HTH
> > > >Clint
> > > >
> > > >-Original Message-
> > > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > > >Sent: Wednesday, March 20, 2002 4:56 AM
> > > >To: CF-Talk
> > > >Subject: RE: Running code just one time
> > > >
> > > >
> > > >I just thought by saying I want to output some text I could explain it
> > > >better.
> > > >
> > > >I have a custom tag that goes into the NT security and outputs the groups
> > > >associated with the user which I'm setting
> > > >in my application.cfm as...
> > > >
> > > >
> > > >I use this variable on everypage to display the username logged in.
> > > >
> > > >The thing is when the index.cfm file is loaded again and again I *don't*
> > > >want the custom tag to execute. Eventually I want to grab all the
> > > >information from the custom tag and dump it to a database but only
> > ONCE per
> > > >session.
> > > >
> > > >I hope this is clearer...:-) :-)
> > > >
> > > >
> > > >
> > > >
> > > >At 07:27 AM 3/20/2002 -0500, you wrote:
> > > > >Expire the session varibale when the user logs out..if you have them log
> > > > >out.
> > > > >Im not clear on what you are trying to do here.. what is it that you are
> > > > >outputting on the first page visit?
> > > > >
> > > > >
> 

RE: Running code just one time

2002-03-20 Thread chris.alvarado

try doing : isDefined("session.isLoggedIn")

NOT

isDefined(session.isLoggedIn)

example 2 is actually tryng to evaluate the variable as opposed to check for
its existance.

-chris.alvarado
[application.developer]
4 Guys Interactive, Inc.

-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 10:07 AM
To: CF-Talk
Subject: Re: Running code just one time


I get the following error...

Error Occurred While Processing Request
Error Diagnostic InformationAn error occurred while evaluating the
expression:  REQUEST.isLoggedIn = IsDefined(SESSION.isLoggedIn)Error near
line 23, column 11. Error resolving parameter SESSION.ISLOGGEDIN The
session variable ISLOGGEDIN does not exist. The cause of this error is very
likely one of the following things: The name of the session variable has
been misspelled. The session variable has not yet been created. The session
variable has timed out.The error occurred while processing an element with
a general identifier of (CFSET), occupying document position (23:5) to
(23:62).Date/Time: 03/20/02 11:06:35
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461)



At 10:43 AM 3/20/2002 -0500, you wrote:
>Here is the exact code you want.  You should put it in the Application.cfm
>insted of the index.cfm so it gets run regardless of what page the user
>starts out on (they might have a hyperlink to another page).
>
>
> 
> 
>
>
>
> 
> [insert custom tag call here]
> 
> 
> 
>
>
>Now, when the page runs again, the session variable "isLoggedIn" will
>prevent the code from running everytime.
>
>If you're not clear on the concept of session scope or the
>application.cfm, please let us know.  It makes all the difference for
>understanding how this might work.
>
>Sharon DiOrio
>- Original Message -
>From: "phumes1" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Wednesday, March 20, 2002 8:53 AM
>Subject: RE: Running code just one time
>
>
> > At 07:31 AM 3/20/2002 -0800, you wrote:
> > >Then what you need to do is set this value -  > >"#CGI.AUTH_USER#"> to a session variable.
> > >
> > >Then on your index.cfm, just check for that session var and if it has
> > >anything in it.. if it does do not run the tag, if there is not any
value
> > >then run the tag and populate the session var..
> > >
> > >Make sense?
> >
> > No. It's not the cgi.auth_user I want to check. I think I'm really
messing
> > this up...
> >
> > All I want to do is run a piece of code when the user accesses the web
site
> > (index.cfm) for the first time
> > after username/password authentication. When the index.cfm is run
anytime
> > afterwards the code is ignored.
> >
> >
> >
> > >HTH
> > >Clint
> > >
> > >-Original Message-
> > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, March 20, 2002 4:56 AM
> > >To: CF-Talk
> > >Subject: RE: Running code just one time
> > >
> > >
> > >I just thought by saying I want to output some text I could explain it
> > >better.
> > >
> > >I have a custom tag that goes into the NT security and outputs the
groups
> > >associated with the user which I'm setting
> > >in my application.cfm as...
> > >
> > >
> > >I use this variable on everypage to display the username logged in.
> > >
> > >The thing is when the index.cfm file is loaded again and again I
*don't*
> > >want the custom tag to execute. Eventually I want to grab all the
> > >information from the custom tag and dump it to a database but only
> ONCE per
> > >session.
> > >
> > >I hope this is clearer...:-) :-)
> > >
> > >
> > >
> > >
> > >At 07:27 AM 3/20/2002 -0500, you wrote:
> > > >Expire the session varibale when the user logs out..if you have them
log
> > > >out.
> > > >Im not clear on what you are trying to do here.. what is it that you
are
> > > >outputting on the first page visit?
> > > >
> > > >
> > > >-Original Message-
> > > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > > >Sent: Wednesday, March 20, 2002 7:35 AM
> > > >To: CF-Talk
> > > >Subject: RE: Running code just one time
> > > >
> > > >
> > > >OK...but won't this session variable always be "1" when the
> application.cfm
> &

Re: Running code just one time

2002-03-20 Thread phumes1

I get the following error...

Error Occurred While Processing Request
Error Diagnostic InformationAn error occurred while evaluating the 
expression:  REQUEST.isLoggedIn = IsDefined(SESSION.isLoggedIn)Error near 
line 23, column 11. Error resolving parameter SESSION.ISLOGGEDIN The 
session variable ISLOGGEDIN does not exist. The cause of this error is very 
likely one of the following things: The name of the session variable has 
been misspelled. The session variable has not yet been created. The session 
variable has timed out.The error occurred while processing an element with 
a general identifier of (CFSET), occupying document position (23:5) to 
(23:62).Date/Time: 03/20/02 11:06:35
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461)



At 10:43 AM 3/20/2002 -0500, you wrote:
>Here is the exact code you want.  You should put it in the Application.cfm 
>insted of the index.cfm so it gets run regardless of what page the user 
>starts out on (they might have a hyperlink to another page).
>
>
> 
> 
>
>
>
> 
> [insert custom tag call here]
> 
> 
> 
>
>
>Now, when the page runs again, the session variable "isLoggedIn" will 
>prevent the code from running everytime.
>
>If you're not clear on the concept of session scope or the 
>application.cfm, please let us know.  It makes all the difference for 
>understanding how this might work.
>
>Sharon DiOrio
>- Original Message -
>From: "phumes1" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Wednesday, March 20, 2002 8:53 AM
>Subject: RE: Running code just one time
>
>
> > At 07:31 AM 3/20/2002 -0800, you wrote:
> > >Then what you need to do is set this value -  > >"#CGI.AUTH_USER#"> to a session variable.
> > >
> > >Then on your index.cfm, just check for that session var and if it has
> > >anything in it.. if it does do not run the tag, if there is not any value
> > >then run the tag and populate the session var..
> > >
> > >Make sense?
> >
> > No. It's not the cgi.auth_user I want to check. I think I'm really messing
> > this up...
> >
> > All I want to do is run a piece of code when the user accesses the web site
> > (index.cfm) for the first time
> > after username/password authentication. When the index.cfm is run anytime
> > afterwards the code is ignored.
> >
> >
> >
> > >HTH
> > >Clint
> > >
> > >-Original Message-
> > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, March 20, 2002 4:56 AM
> > >To: CF-Talk
> > >Subject: RE: Running code just one time
> > >
> > >
> > >I just thought by saying I want to output some text I could explain it
> > >better.
> > >
> > >I have a custom tag that goes into the NT security and outputs the groups
> > >associated with the user which I'm setting
> > >in my application.cfm as...
> > >
> > >
> > >I use this variable on everypage to display the username logged in.
> > >
> > >The thing is when the index.cfm file is loaded again and again I *don't*
> > >want the custom tag to execute. Eventually I want to grab all the
> > >information from the custom tag and dump it to a database but only 
> ONCE per
> > >session.
> > >
> > >I hope this is clearer...:-) :-)
> > >
> > >
> > >
> > >
> > >At 07:27 AM 3/20/2002 -0500, you wrote:
> > > >Expire the session varibale when the user logs out..if you have them log
> > > >out.
> > > >Im not clear on what you are trying to do here.. what is it that you are
> > > >outputting on the first page visit?
> > > >
> > > >
> > > >-Original Message-
> > > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > > >Sent: Wednesday, March 20, 2002 7:35 AM
> > > >To: CF-Talk
> > > >Subject: RE: Running code just one time
> > > >
> > > >
> > > >OK...but won't this session variable always be "1" when the 
> application.cfm
> > > >is loaded again?
> > > >Do I have to set the variable to "2" once I output what I want for the
> > > >first time.
> > > >
> > > >I'm missing something here...
> > > >
> > > >At 07:02 AM 3/20/2002 -0500, you wrote:
> > > > >When they get logged in, set a flag in application.cfm, s

Re: Running code just one time

2002-03-20 Thread Sharon Diorio

Here is the exact code you want.  You should put it in the Application.cfm insted of 
the index.cfm so it gets run regardless of what page the user starts out on (they 
might have a hyperlink to another page).








[insert custom tag call here]





Now, when the page runs again, the session variable "isLoggedIn" will prevent the code 
from running everytime.

If you're not clear on the concept of session scope or the application.cfm, please let 
us know.  It makes all the difference for understanding how this might work.

Sharon DiOrio
- Original Message - 
From: "phumes1" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 8:53 AM
Subject: RE: Running code just one time


> At 07:31 AM 3/20/2002 -0800, you wrote:
> >Then what you need to do is set this value -  >"#CGI.AUTH_USER#"> to a session variable.
> >
> >Then on your index.cfm, just check for that session var and if it has
> >anything in it.. if it does do not run the tag, if there is not any value
> >then run the tag and populate the session var..
> >
> >Make sense?
> 
> No. It's not the cgi.auth_user I want to check. I think I'm really messing
> this up...
> 
> All I want to do is run a piece of code when the user accesses the web site
> (index.cfm) for the first time
> after username/password authentication. When the index.cfm is run anytime
> afterwards the code is ignored.
> 
> 
> 
> >HTH
> >Clint
> >
> >-Original Message-
> >From: phumes1 [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 20, 2002 4:56 AM
> >To: CF-Talk
> >Subject: RE: Running code just one time
> >
> >
> >I just thought by saying I want to output some text I could explain it
> >better.
> >
> >I have a custom tag that goes into the NT security and outputs the groups
> >associated with the user which I'm setting
> >in my application.cfm as...
> >
> >
> >I use this variable on everypage to display the username logged in.
> >
> >The thing is when the index.cfm file is loaded again and again I *don't*
> >want the custom tag to execute. Eventually I want to grab all the
> >information from the custom tag and dump it to a database but only ONCE per
> >session.
> >
> >I hope this is clearer...:-) :-)
> >
> >
> >
> >
> >At 07:27 AM 3/20/2002 -0500, you wrote:
> > >Expire the session varibale when the user logs out..if you have them log
> > >out.
> > >Im not clear on what you are trying to do here.. what is it that you are
> > >outputting on the first page visit?
> > >
> > >
> > >-Original Message-
> > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, March 20, 2002 7:35 AM
> > >To: CF-Talk
> > >Subject: RE: Running code just one time
> > >
> > >
> > >OK...but won't this session variable always be "1" when the application.cfm
> > >is loaded again?
> > >Do I have to set the variable to "2" once I output what I want for the
> > >first time.
> > >
> > >I'm missing something here...
> > >
> > >At 07:02 AM 3/20/2002 -0500, you wrote:
> > > >When they get logged in, set a flag in application.cfm, such as a
> > > >session session.beenHereBefore = 1, then in your index page check the
> > > >value of the variable and output accordingly.
> > > >
> > > >HTH,
> > > >Mike
> > > >
> > > >-Original Message-
> > > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > > >Sent: Wednesday, March 20, 2002 7:07 AM
> > > >To: CF-Talk
> > > >Subject: Re: Running code just one time
> > > >
> > > >
> > > >Hi,
> > > >
> > > >This is regarding a post from yesterday. Maybe I didn't explain it
> > > >properly. I had mentioned a custom tag but for now lets just forget
> > > >about it.
> > > >
> > > >I am running IIS on NT 4. All users have accounts on the system.  In
> > > >IIS under the "Default Web Site Properties" I went into the "Directory
> > > >Security" tab and disabled the "Anonymous Access" and enabled the "NT
> > > >Windows Challenge/Response" only.
> > > >
> > > >Now when user

Re: Running code just one time

2002-03-20 Thread phumes1

At 10:33 AM 3/20/2002 -0500, you wrote:
> > Within my index.cfm or application.cfm file I want to check if this is the
> > first time that the index.cfm file is loaded. If so, do something otherwise
> > do nothing.
>
>The first time loaded at all?  The first time loaded for that user's 
>session?  The first time loaded for that user ever?

First loaded for that user until they logout. Is there some code that 
clears ALL variables (session/application/cookies) that
can be performed from a logout.cfm template?

I've set the session timeout to 8 hours.

>Depending on your definition of "the first time" you can choose the 
>correct variable scope to set to prevent the code from running again.

I've tried a session variable and it works fine.

>First time loaded at all: Set an application scope variable
>First time for that user's: Set a session scope variable
>First time for that user ever?: Set a cookie that never expires.
>
>The concept is the same.  If the index.cfm doesn't find that variable, it 
>runs the code, otherwise it skips it.
>
>HTH!

Thanks


>Sharon
>
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Running code just one time

2002-03-20 Thread Sharon Diorio

> Within my index.cfm or application.cfm file I want to check if this is the
> first time that the index.cfm file is loaded. If so, do something otherwise
> do nothing.

The first time loaded at all?  The first time loaded for that user's session?  The 
first time loaded for that user ever?  

Depending on your definition of "the first time" you can choose the correct variable 
scope to set to prevent the code from running again.

First time loaded at all: Set an application scope variable
First time for that user's: Set a session scope variable
First time for that user ever?: Set a cookie that never expires.

The concept is the same.  If the index.cfm doesn't find that variable, it runs the 
code, otherwise it skips it.

HTH!

Sharon
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Running code just one time

2002-03-20 Thread Dave Hannum

Do this.  When the user logs in, set a cookie that lives only for that
session..  Then, wrap the login code with a CFIF IsDefined(COOKIE.login).
If the cookie exists, then pass them on through.

Dave


- Original Message -
From: "phumes1" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 8:53 AM
Subject: RE: Running code just one time


At 07:31 AM 3/20/2002 -0800, you wrote:
>Then what you need to do is set this value - "#CGI.AUTH_USER#"> to a session variable.
>
>Then on your index.cfm, just check for that session var and if it has
>anything in it.. if it does do not run the tag, if there is not any value
>then run the tag and populate the session var..
>
>Make sense?

No. It's not the cgi.auth_user I want to check. I think I'm really messing
this up...

All I want to do is run a piece of code when the user accesses the web site
(index.cfm) for the first time
after username/password authentication. When the index.cfm is run anytime
afterwards the code is ignored.



>HTH
>Clint
>
>-Original Message-
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 20, 2002 4:56 AM
>To: CF-Talk
>Subject: RE: Running code just one time
>
>
>I just thought by saying I want to output some text I could explain it
>better.
>
>I have a custom tag that goes into the NT security and outputs the groups
>associated with the user which I'm setting
>in my application.cfm as...
>
>
>I use this variable on everypage to display the username logged in.
>
>The thing is when the index.cfm file is loaded again and again I *don't*
>want the custom tag to execute. Eventually I want to grab all the
>information from the custom tag and dump it to a database but only ONCE per
>session.
>
>I hope this is clearer...:-) :-)
>
>
>
>
>At 07:27 AM 3/20/2002 -0500, you wrote:
> >Expire the session varibale when the user logs out..if you have them log
> >out.
> >Im not clear on what you are trying to do here.. what is it that you are
> >outputting on the first page visit?
> >
> >
> >-Original Message-
> >From: phumes1 [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 20, 2002 7:35 AM
> >To: CF-Talk
> >Subject: RE: Running code just one time
> >
> >
> >OK...but won't this session variable always be "1" when the
application.cfm
> >is loaded again?
> >Do I have to set the variable to "2" once I output what I want for the
> >first time.
> >
> >I'm missing something here...
> >
> >At 07:02 AM 3/20/2002 -0500, you wrote:
> > >When they get logged in, set a flag in application.cfm, such as a
> > >session session.beenHereBefore = 1, then in your index page check the
> > >value of the variable and output accordingly.
> > >
> > >HTH,
> > >Mike
> > >
> > >-Original Message-
> > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, March 20, 2002 7:07 AM
> > >To: CF-Talk
> > >Subject: Re: Running code just one time
> > >
> > >
> > >Hi,
> > >
> > >This is regarding a post from yesterday. Maybe I didn't explain it
> > >properly. I had mentioned a custom tag but for now lets just forget
> > >about it.
> > >
> > >I am running IIS on NT 4. All users have accounts on the system.  In
> > >IIS under the "Default Web Site Properties" I went into the "Directory
> > >Security" tab and disabled the "Anonymous Access" and enabled the "NT
> > >Windows Challenge/Response" only.
> > >
> > >Now when users try to access the web page they are prompted with a
> > >username/password Windows authentication dialog.
> > >
> > >If the correct username/password are entered the user is redirected to
> > >my index.cfm file.
> > >
> > >This is what I would like to do.
> > >
> > >Within my index.cfm or application.cfm file I want to check if this is
> > >the first time that the index.cfm file is loaded. If so, do something
> > >otherwise do nothing.
> > >
> > >Below is just an example...
> > >
> > >
> > >index.cfm or application.cfm
> > >--
> > >
> > >- Check to see if this is the first time index.cfm file is loaded (at
> > >login
> > >time)
> > >
> > > - If so dump some test
> > >  Logged in
> > >
> > >
> > >If index.cfm is loaded any other time do nothing
> > >
> > >
> > >I'm not sure how to incorporate this?
> > >
> > >
> > >
> > >+--
> > >+-
> > >+
> > >
> > >Philip Humeniuk
> > >[EMAIL PROTECTED]
> > >[EMAIL PROTECTED]
> > >+--
> > >+-
> > >-+
> > >
> > >
> > >
> > >
> >
> >
>
>

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread Chad Gray

Write some logic that  IF the user has already done this dont let them do 
it again.  Set a session variable to make the decision.



At 07:56 AM 3/20/2002 -0500, you wrote:
>I just thought by saying I want to output some text I could explain it better.
>
>I have a custom tag that goes into the NT security and outputs the groups
>associated with the user which I'm setting
>in my application.cfm as...
>
>
>
>I use this variable on everypage to display the username logged in.
>
>The thing is when the index.cfm file is loaded again and again I *don't*
>want the custom tag to execute. Eventually I want to grab all the
>information from the custom tag and dump it to a database but only ONCE per
>session.
>
>I hope this is clearer...:-) :-)
>
>
>
>
>At 07:27 AM 3/20/2002 -0500, you wrote:
> >Expire the session varibale when the user logs out..if you have them log
> >out.
> >Im not clear on what you are trying to do here.. what is it that you are
> >outputting on the first page visit?
> >
> >
> >-Original Message-
> >From: phumes1 [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 20, 2002 7:35 AM
> >To: CF-Talk
> >Subject: RE: Running code just one time
> >
> >
> >OK...but won't this session variable always be "1" when the application.cfm
> >is loaded again?
> >Do I have to set the variable to "2" once I output what I want for the
> >first time.
> >
> >I'm missing something here...
> >
> >At 07:02 AM 3/20/2002 -0500, you wrote:
> > >When they get logged in, set a flag in application.cfm, such as a
> > >session session.beenHereBefore = 1, then in your index page check the
> > >value of the variable and output accordingly.
> > >
> > >HTH,
> > >Mike
> > >
> > >-Original Message-
> > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, March 20, 2002 7:07 AM
> > >To: CF-Talk
> > >Subject: Re: Running code just one time
> > >
> > >
> > >Hi,
> > >
> > >This is regarding a post from yesterday. Maybe I didn't explain it
> > >properly. I had mentioned a custom tag but for now lets just forget
> > >about it.
> > >
> > >I am running IIS on NT 4. All users have accounts on the system.  In
> > >IIS under the "Default Web Site Properties" I went into the "Directory
> > >Security" tab and disabled the "Anonymous Access" and enabled the "NT
> > >Windows Challenge/Response" only.
> > >
> > >Now when users try to access the web page they are prompted with a
> > >username/password Windows authentication dialog.
> > >
> > >If the correct username/password are entered the user is redirected to
> > >my index.cfm file.
> > >
> > >This is what I would like to do.
> > >
> > >Within my index.cfm or application.cfm file I want to check if this is
> > >the first time that the index.cfm file is loaded. If so, do something
> > >otherwise do nothing.
> > >
> > >Below is just an example...
> > >
> > >
> > >index.cfm or application.cfm
> > >--
> > >
> > >- Check to see if this is the first time index.cfm file is loaded (at
> > >login
> > >time)
> > >
> > > - If so dump some test
> > >  Logged in
> > >
> > >
> > >If index.cfm is loaded any other time do nothing
> > >
> > >
> > >I'm not sure how to incorporate this?
> > >
> > >
> > >
> > >+--
> > >+-
> > >+
> > >
> > >Philip Humeniuk
> > >[EMAIL PROTECTED]
> > >[EMAIL PROTECTED]
> > >+--
> > >+-
> > >-+
> > >
> > >
> > >
> > >
> >
> >
>
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread Clint Tredway

Then what you need to do is after the 'piece of code' that you want to run
is run, set any session var and while this session var has a certain value
the code won't run again until the session times out.

HTH


-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 5:54 AM
To: CF-Talk
Subject: RE: Running code just one time


At 07:31 AM 3/20/2002 -0800, you wrote:
>Then what you need to do is set this value - "#CGI.AUTH_USER#"> to a session variable.
>
>Then on your index.cfm, just check for that session var and if it has
>anything in it.. if it does do not run the tag, if there is not any value
>then run the tag and populate the session var..
>
>Make sense?

No. It's not the cgi.auth_user I want to check. I think I'm really messing
this up...

All I want to do is run a piece of code when the user accesses the web site
(index.cfm) for the first time
after username/password authentication. When the index.cfm is run anytime
afterwards the code is ignored.



>HTH
>Clint
>
>-Original Message-
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 20, 2002 4:56 AM
>To: CF-Talk
>Subject: RE: Running code just one time
>
>
>I just thought by saying I want to output some text I could explain it
>better.
>
>I have a custom tag that goes into the NT security and outputs the groups
>associated with the user which I'm setting
>in my application.cfm as...
>
>
>I use this variable on everypage to display the username logged in.
>
>The thing is when the index.cfm file is loaded again and again I *don't*
>want the custom tag to execute. Eventually I want to grab all the
>information from the custom tag and dump it to a database but only ONCE per
>session.
>
>I hope this is clearer...:-) :-)
>
>
>
>
>At 07:27 AM 3/20/2002 -0500, you wrote:
> >Expire the session varibale when the user logs out..if you have them log
> >out.
> >Im not clear on what you are trying to do here.. what is it that you are
> >outputting on the first page visit?
> >
> >
> >-Original Message-
> >From: phumes1 [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 20, 2002 7:35 AM
> >To: CF-Talk
> >Subject: RE: Running code just one time
> >
> >
> >OK...but won't this session variable always be "1" when the
application.cfm
> >is loaded again?
> >Do I have to set the variable to "2" once I output what I want for the
> >first time.
> >
> >I'm missing something here...
> >
> >At 07:02 AM 3/20/2002 -0500, you wrote:
> > >When they get logged in, set a flag in application.cfm, such as a
> > >session session.beenHereBefore = 1, then in your index page check the
> > >value of the variable and output accordingly.
> > >
> > >HTH,
> > >Mike
> > >
> > >-Original Message-
> > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, March 20, 2002 7:07 AM
> > >To: CF-Talk
> > >Subject: Re: Running code just one time
> > >
> > >
> > >Hi,
> > >
> > >This is regarding a post from yesterday. Maybe I didn't explain it
> > >properly. I had mentioned a custom tag but for now lets just forget
> > >about it.
> > >
> > >I am running IIS on NT 4. All users have accounts on the system.  In
> > >IIS under the "Default Web Site Properties" I went into the "Directory
> > >Security" tab and disabled the "Anonymous Access" and enabled the "NT
> > >Windows Challenge/Response" only.
> > >
> > >Now when users try to access the web page they are prompted with a
> > >username/password Windows authentication dialog.
> > >
> > >If the correct username/password are entered the user is redirected to
> > >my index.cfm file.
> > >
> > >This is what I would like to do.
> > >
> > >Within my index.cfm or application.cfm file I want to check if this is
> > >the first time that the index.cfm file is loaded. If so, do something
> > >otherwise do nothing.
> > >
> > >Below is just an example...
> > >
> > >
> > >index.cfm or application.cfm
> > >--
> > >
> > >- Check to see if this is the first time index.cfm file is loaded (at
> > >login
> > >time)
> > >
> > > - If so dump some test
> > >  Logged in
> > >
> > >
> > >If index.cfm is loaded any other time do nothing
> > >
> > >
> > >I'm not sure how to incorporate this?
> > >
> > >
> > >
> > >+--
> > >+-
> > >+
> > >
> > >Philip Humeniuk
> > >[EMAIL PROTECTED]
> > >[EMAIL PROTECTED]
> > >+--
> > >+-
> > >-+
> > >
> > >
> > >
> > >
> >
> >
>
>

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread phumes1

At 07:31 AM 3/20/2002 -0800, you wrote:
>Then what you need to do is set this value - "#CGI.AUTH_USER#"> to a session variable.
>
>Then on your index.cfm, just check for that session var and if it has
>anything in it.. if it does do not run the tag, if there is not any value
>then run the tag and populate the session var..
>
>Make sense?

No. It's not the cgi.auth_user I want to check. I think I'm really messing 
this up...

All I want to do is run a piece of code when the user accesses the web site 
(index.cfm) for the first time
after username/password authentication. When the index.cfm is run anytime 
afterwards the code is ignored.



>HTH
>Clint
>
>-Original Message-
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 20, 2002 4:56 AM
>To: CF-Talk
>Subject: RE: Running code just one time
>
>
>I just thought by saying I want to output some text I could explain it
>better.
>
>I have a custom tag that goes into the NT security and outputs the groups
>associated with the user which I'm setting
>in my application.cfm as...
>
>
>I use this variable on everypage to display the username logged in.
>
>The thing is when the index.cfm file is loaded again and again I *don't*
>want the custom tag to execute. Eventually I want to grab all the
>information from the custom tag and dump it to a database but only ONCE per
>session.
>
>I hope this is clearer...:-) :-)
>
>
>
>
>At 07:27 AM 3/20/2002 -0500, you wrote:
> >Expire the session varibale when the user logs out..if you have them log
> >out.
> >Im not clear on what you are trying to do here.. what is it that you are
> >outputting on the first page visit?
> >
> >
> >-Original Message-
> >From: phumes1 [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 20, 2002 7:35 AM
> >To: CF-Talk
> >Subject: RE: Running code just one time
> >
> >
> >OK...but won't this session variable always be "1" when the application.cfm
> >is loaded again?
> >Do I have to set the variable to "2" once I output what I want for the
> >first time.
> >
> >I'm missing something here...
> >
> >At 07:02 AM 3/20/2002 -0500, you wrote:
> > >When they get logged in, set a flag in application.cfm, such as a
> > >session session.beenHereBefore = 1, then in your index page check the
> > >value of the variable and output accordingly.
> > >
> > >HTH,
> > >Mike
> > >
> > >-Original Message-
> > >From: phumes1 [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, March 20, 2002 7:07 AM
> > >To: CF-Talk
> > >Subject: Re: Running code just one time
> > >
> > >
> > >Hi,
> > >
> > >This is regarding a post from yesterday. Maybe I didn't explain it
> > >properly. I had mentioned a custom tag but for now lets just forget
> > >about it.
> > >
> > >I am running IIS on NT 4. All users have accounts on the system.  In
> > >IIS under the "Default Web Site Properties" I went into the "Directory
> > >Security" tab and disabled the "Anonymous Access" and enabled the "NT
> > >Windows Challenge/Response" only.
> > >
> > >Now when users try to access the web page they are prompted with a
> > >username/password Windows authentication dialog.
> > >
> > >If the correct username/password are entered the user is redirected to
> > >my index.cfm file.
> > >
> > >This is what I would like to do.
> > >
> > >Within my index.cfm or application.cfm file I want to check if this is
> > >the first time that the index.cfm file is loaded. If so, do something
> > >otherwise do nothing.
> > >
> > >Below is just an example...
> > >
> > >
> > >index.cfm or application.cfm
> > >--
> > >
> > >- Check to see if this is the first time index.cfm file is loaded (at
> > >login
> > >time)
> > >
> > > - If so dump some test
> > >  Logged in
> > >
> > >
> > >If index.cfm is loaded any other time do nothing
> > >
> > >
> > >I'm not sure how to incorporate this?
> > >
> > >
> > >
> > >+--
> > >+-
> > >+
> > >
> > >Philip Humeniuk
> > >[EMAIL PROTECTED]
> > >[EMAIL PROTECTED]
> > >+--
> > >+-
> > >-+
> > >
> > >
> > >
> > >
> >
> >
>
>
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread Clint Tredway

Then what you need to do is set this value -  to a session variable.

Then on your index.cfm, just check for that session var and if it has
anything in it.. if it does do not run the tag, if there is not any value
then run the tag and populate the session var..

Make sense?

HTH
Clint

-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 4:56 AM
To: CF-Talk
Subject: RE: Running code just one time


I just thought by saying I want to output some text I could explain it
better.

I have a custom tag that goes into the NT security and outputs the groups
associated with the user which I'm setting
in my application.cfm as...


I use this variable on everypage to display the username logged in.

The thing is when the index.cfm file is loaded again and again I *don't*
want the custom tag to execute. Eventually I want to grab all the
information from the custom tag and dump it to a database but only ONCE per
session.

I hope this is clearer...:-) :-)




At 07:27 AM 3/20/2002 -0500, you wrote:
>Expire the session varibale when the user logs out..if you have them log
>out.
>Im not clear on what you are trying to do here.. what is it that you are
>outputting on the first page visit?
>
>
>-Original Message-
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 20, 2002 7:35 AM
>To: CF-Talk
>Subject: RE: Running code just one time
>
>
>OK...but won't this session variable always be "1" when the application.cfm
>is loaded again?
>Do I have to set the variable to "2" once I output what I want for the
>first time.
>
>I'm missing something here...
>
>At 07:02 AM 3/20/2002 -0500, you wrote:
> >When they get logged in, set a flag in application.cfm, such as a
> >session session.beenHereBefore = 1, then in your index page check the
> >value of the variable and output accordingly.
> >
> >HTH,
> >Mike
> >
> >-----Original Message-
> >From: phumes1 [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 20, 2002 7:07 AM
> >To: CF-Talk
> >Subject: Re: Running code just one time
> >
> >
> >Hi,
> >
> >This is regarding a post from yesterday. Maybe I didn't explain it
> >properly. I had mentioned a custom tag but for now lets just forget
> >about it.
> >
> >I am running IIS on NT 4. All users have accounts on the system.  In
> >IIS under the "Default Web Site Properties" I went into the "Directory
> >Security" tab and disabled the "Anonymous Access" and enabled the "NT
> >Windows Challenge/Response" only.
> >
> >Now when users try to access the web page they are prompted with a
> >username/password Windows authentication dialog.
> >
> >If the correct username/password are entered the user is redirected to
> >my index.cfm file.
> >
> >This is what I would like to do.
> >
> >Within my index.cfm or application.cfm file I want to check if this is
> >the first time that the index.cfm file is loaded. If so, do something
> >otherwise do nothing.
> >
> >Below is just an example...
> >
> >
> >index.cfm or application.cfm
> >--
> >
> >- Check to see if this is the first time index.cfm file is loaded (at
> >login
> >time)
> >
> > - If so dump some test
> >  Logged in
> >
> >
> >If index.cfm is loaded any other time do nothing
> >
> >
> >I'm not sure how to incorporate this?
> >
> >
> >
> >+--
> >+-
> >+
> >
> >Philip Humeniuk
> >[EMAIL PROTECTED]
> >[EMAIL PROTECTED]
> >+--
> >+-
> >-+
> >
> >
> >
> >
>
>

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread phumes1

I just thought by saying I want to output some text I could explain it better.

I have a custom tag that goes into the NT security and outputs the groups 
associated with the user which I'm setting
in my application.cfm as...



I use this variable on everypage to display the username logged in.

The thing is when the index.cfm file is loaded again and again I *don't* 
want the custom tag to execute. Eventually I want to grab all the 
information from the custom tag and dump it to a database but only ONCE per 
session.

I hope this is clearer...:-) :-)




At 07:27 AM 3/20/2002 -0500, you wrote:
>Expire the session varibale when the user logs out..if you have them log
>out.
>Im not clear on what you are trying to do here.. what is it that you are
>outputting on the first page visit?
>
>
>-Original Message-
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 20, 2002 7:35 AM
>To: CF-Talk
>Subject: RE: Running code just one time
>
>
>OK...but won't this session variable always be "1" when the application.cfm
>is loaded again?
>Do I have to set the variable to "2" once I output what I want for the
>first time.
>
>I'm missing something here...
>
>At 07:02 AM 3/20/2002 -0500, you wrote:
> >When they get logged in, set a flag in application.cfm, such as a
> >session session.beenHereBefore = 1, then in your index page check the
> >value of the variable and output accordingly.
> >
> >HTH,
> >Mike
> >
> >-----Original Message-
> >From: phumes1 [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 20, 2002 7:07 AM
> >To: CF-Talk
> >Subject: Re: Running code just one time
> >
> >
> >Hi,
> >
> >This is regarding a post from yesterday. Maybe I didn't explain it
> >properly. I had mentioned a custom tag but for now lets just forget
> >about it.
> >
> >I am running IIS on NT 4. All users have accounts on the system.  In
> >IIS under the "Default Web Site Properties" I went into the "Directory
> >Security" tab and disabled the "Anonymous Access" and enabled the "NT
> >Windows Challenge/Response" only.
> >
> >Now when users try to access the web page they are prompted with a
> >username/password Windows authentication dialog.
> >
> >If the correct username/password are entered the user is redirected to
> >my index.cfm file.
> >
> >This is what I would like to do.
> >
> >Within my index.cfm or application.cfm file I want to check if this is
> >the first time that the index.cfm file is loaded. If so, do something
> >otherwise do nothing.
> >
> >Below is just an example...
> >
> >
> >index.cfm or application.cfm
> >--
> >
> >- Check to see if this is the first time index.cfm file is loaded (at
> >login
> >time)
> >
> > - If so dump some test
> >  Logged in
> >
> >
> >If index.cfm is loaded any other time do nothing
> >
> >
> >I'm not sure how to incorporate this?
> >
> >
> >
> >+--
> >+-
> >+
> >
> >Philip Humeniuk
> >[EMAIL PROTECTED]
> >[EMAIL PROTECTED]
> >+--
> >+-
> >-+
> >
> >
> >
> >
>
>
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread Tangorre, Michael T.

Expire the session varibale when the user logs out..if you have them log
out.
Im not clear on what you are trying to do here.. what is it that you are
outputting on the first page visit?


-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 20, 2002 7:35 AM
To: CF-Talk
Subject: RE: Running code just one time


OK...but won't this session variable always be "1" when the application.cfm 
is loaded again?
Do I have to set the variable to "2" once I output what I want for the 
first time.

I'm missing something here...

At 07:02 AM 3/20/2002 -0500, you wrote:
>When they get logged in, set a flag in application.cfm, such as a 
>session session.beenHereBefore = 1, then in your index page check the 
>value of the variable and output accordingly.
>
>HTH,
>Mike
>
>-Original Message-
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 20, 2002 7:07 AM
>To: CF-Talk
>Subject: Re: Running code just one time
>
>
>Hi,
>
>This is regarding a post from yesterday. Maybe I didn't explain it 
>properly. I had mentioned a custom tag but for now lets just forget 
>about it.
>
>I am running IIS on NT 4. All users have accounts on the system.  In 
>IIS under the "Default Web Site Properties" I went into the "Directory 
>Security" tab and disabled the "Anonymous Access" and enabled the "NT 
>Windows Challenge/Response" only.
>
>Now when users try to access the web page they are prompted with a 
>username/password Windows authentication dialog.
>
>If the correct username/password are entered the user is redirected to 
>my index.cfm file.
>
>This is what I would like to do.
>
>Within my index.cfm or application.cfm file I want to check if this is 
>the first time that the index.cfm file is loaded. If so, do something 
>otherwise do nothing.
>
>Below is just an example...
>
>
>index.cfm or application.cfm
>--
>
>- Check to see if this is the first time index.cfm file is loaded (at 
>login
>time)
>
> - If so dump some test
>  Logged in
>
>
>If index.cfm is loaded any other time do nothing
>
>
>I'm not sure how to incorporate this?
>
>
>
>+--
>+-
>+
>
>Philip Humeniuk
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>+--
>+-
>-+
>
>
>
>

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread phumes1

OK...but won't this session variable always be "1" when the application.cfm 
is loaded again?
Do I have to set the variable to "2" once I output what I want for the 
first time.

I'm missing something here...

At 07:02 AM 3/20/2002 -0500, you wrote:
>When they get logged in, set a flag in application.cfm, such as a session
>session.beenHereBefore = 1, then in your index page check the value of the
>variable and output accordingly.
>
>HTH,
>Mike
>
>-Original Message-
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 20, 2002 7:07 AM
>To: CF-Talk
>Subject: Re: Running code just one time
>
>
>Hi,
>
>This is regarding a post from yesterday. Maybe I didn't explain it
>properly. I had mentioned a custom tag but for now
>lets just forget about it.
>
>I am running IIS on NT 4. All users have accounts on the system.  In IIS
>under the "Default Web Site Properties" I went into
>the "Directory Security" tab and disabled the "Anonymous Access" and
>enabled the "NT Windows Challenge/Response" only.
>
>Now when users try to access the web page they are prompted with a
>username/password Windows authentication dialog.
>
>If the correct username/password are entered the user is redirected to my
>index.cfm file.
>
>This is what I would like to do.
>
>Within my index.cfm or application.cfm file I want to check if this is the
>first time that the index.cfm file is loaded. If so, do something otherwise
>do nothing.
>
>Below is just an example...
>
>
>index.cfm or application.cfm
>--
>
>- Check to see if this is the first time index.cfm file is loaded (at login
>time)
>
> - If so dump some test
>  Logged in
>
>
>If index.cfm is loaded any other time do nothing
>
>
>I'm not sure how to incorporate this?
>
>
>
>+---
>+
>
>Philip Humeniuk
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>+---
>-+
>
>
>
>
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread Tangorre, Michael T.

When they get logged in, set a flag in application.cfm, such as a session
session.beenHereBefore = 1, then in your index page check the value of the
variable and output accordingly.

HTH,
Mike

-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 20, 2002 7:07 AM
To: CF-Talk
Subject: Re: Running code just one time


Hi,

This is regarding a post from yesterday. Maybe I didn't explain it 
properly. I had mentioned a custom tag but for now
lets just forget about it.

I am running IIS on NT 4. All users have accounts on the system.  In IIS 
under the "Default Web Site Properties" I went into
the "Directory Security" tab and disabled the "Anonymous Access" and 
enabled the "NT Windows Challenge/Response" only.

Now when users try to access the web page they are prompted with a 
username/password Windows authentication dialog.

If the correct username/password are entered the user is redirected to my 
index.cfm file.

This is what I would like to do.

Within my index.cfm or application.cfm file I want to check if this is the 
first time that the index.cfm file is loaded. If so, do something otherwise 
do nothing.

Below is just an example...


index.cfm or application.cfm
--

- Check to see if this is the first time index.cfm file is loaded (at login 
time)

- If so dump some test
 Logged in


   If index.cfm is loaded any other time do nothing


I'm not sure how to incorporate this?



+---
+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+---
-+



__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Running code just one time

2002-03-20 Thread Tangorre, Michael T.

In your application.cfm file, set a session varibale (flag if you will),
then in your index.cfm using conditional logic, just output accordingly..

user logs in..application.cfm sets flag
index.cfm checks flag and outputs accordingly.
HTH

Mike


-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 20, 2002 7:07 AM
To: CF-Talk
Subject: Re: Running code just one time


Hi,

This is regarding a post from yesterday. Maybe I didn't explain it 
properly. I had mentioned a custom tag but for now
lets just forget about it.

I am running IIS on NT 4. All users have accounts on the system.  In IIS 
under the "Default Web Site Properties" I went into
the "Directory Security" tab and disabled the "Anonymous Access" and 
enabled the "NT Windows Challenge/Response" only.

Now when users try to access the web page they are prompted with a 
username/password Windows authentication dialog.

If the correct username/password are entered the user is redirected to my 
index.cfm file.

This is what I would like to do.

Within my index.cfm or application.cfm file I want to check if this is the 
first time that the index.cfm file is loaded. If so, do something otherwise 
do nothing.

Below is just an example...


index.cfm or application.cfm
--

- Check to see if this is the first time index.cfm file is loaded (at login 
time)

- If so dump some test
 Logged in


   If index.cfm is loaded any other time do nothing


I'm not sure how to incorporate this?



+---
+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+---
-+



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Running code just one time

2002-03-20 Thread phumes1

Hi,

This is regarding a post from yesterday. Maybe I didn't explain it 
properly. I had mentioned a custom tag but for now
lets just forget about it.

I am running IIS on NT 4. All users have accounts on the system.  In IIS 
under the "Default Web Site Properties" I went into
the "Directory Security" tab and disabled the "Anonymous Access" and 
enabled the "NT Windows Challenge/Response" only.

Now when users try to access the web page they are prompted with a 
username/password Windows authentication dialog.

If the correct username/password are entered the user is redirected to my 
index.cfm file.

This is what I would like to do.

Within my index.cfm or application.cfm file I want to check if this is the 
first time that the index.cfm file is loaded. If so, do something otherwise 
do nothing.

Below is just an example...


index.cfm or application.cfm
--

- Check to see if this is the first time index.cfm file is loaded (at login 
time)

- If so dump some test
 Logged in


   If index.cfm is loaded any other time do nothing


I'm not sure how to incorporate this?



+---+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
++


__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists