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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

