This will work.

<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
  <cfset cfid_local = Cookie.CFID>
  <cfset cftoken_local = Cookie.CFTOKEN>
  <cfcookie name="CFID" value="#cfid_local#">
  <cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>

|-----Original Message-----
|From: Josh Daws [mailto:[EMAIL PROTECTED]]
|Sent: Monday, March 12, 2001 2:12 PM
|To: CF-Talk
|Subject: Session Variables
|
|
|I'm new at CF.  I'm very experienced in ASP however.  I am now 
|working on
|one of my first CF projects and I'm having trouble with 
|session variables.
|
|In ASP I'm used to having the sessions expire when I shut down 
|a browser.
|However, I'm declaring a session variable in cold fusion and 
|when I close
|the browser and open the page up again in a new browser, the session
|variable is still active.  How can I get the session variable 
|to expire when
|I close the browser?  If this can't be done, is there a way to 
|clear all
|session variables the first time the application.cfm is run, 
|but not every
|time?
|
|Josh Daws
|428 Productions
|(941) 756-7431
|www.428Productions.com
|
|
|----- Original Message -----
|From: "CF-Talk" <[EMAIL PROTECTED]>
|To: <[EMAIL PROTECTED]>
|Sent: Monday, March 12, 2001 6:30 AM
|Subject: CF-Talk-list V1 #206
|
|
|> CF-Talk-list                   Mon, 12 Mar 2001          
|Volume 1 : Number
|206
|>
|> In this issue:
|>
|>         RE: Looping Next & Previous Buttons
|>         Encrypted string in forms
|>         Re: Looping Next & Previous Buttons
|>         Slightly OT: Cookie blocking at corporate firewall level -
|> what gives?
|>         RE: Javascript: Tearing my hair out
|>         RE: Slightly OT: Cookie blocking at corporate 
|firewall level -what
|gives?
|>         RE: Dates in OLEDB
|>         Verity error trapping
|>         RE: Dates in OLEDB
|>         RE: Dates in OLEDB
|>
|>
|> 
|----------------------------------------------------------------------
|>
|> Date: Sun, 11 Mar 2001 22:54:50 -0500
|> From: "Chad Elley" <[EMAIL PROTECTED]>
|> To: [EMAIL PROTECTED]
|> Subject: RE: Looping Next & Previous Buttons
|> Message-ID: <[EMAIL PROTECTED]>
|>
|> Might want to look into formatting all of your date 
|variables with the
|> CREATEODBCDATE function.  I ran into a similar problem with 
|dates.  Worth
|a
|> try...
|>
|> -----Original Message-----
|> From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
|> Sent: Sunday, March 11, 2001 6:09 PM
|> To: CF-Talk
|> Subject: Looping Next & Previous Buttons
|>
|>
|> Hi:
|>
|> I'm building a scheduler that only shows a week at a glance 
|(horizontally)
|> and time slots (vertically).  When a user presses the Next 
|button, I can
|> only get it to go to the next week and no further.  Same 
|thing with the
|> Previous button.  Here's some code snipplets.  My brain is 
|fried at the
|> moment.  Any help on this is greatly appreciated.
|>
|> <!---  set some variables --->
|> <CFPARAM NAME="CurrentDate" DEFAULT="#now()#">
|> <CFPARAM NAME="CurrentYear" DEFAULT="#Year(CurrentDate)#">
|> <CFPARAM NAME="CurrentMonth" DEFAULT="#Month(CurrentDate)#">
|> <CFPARAM NAME="CurrentDay" DEFAULT="#Day(CurrentDate)#">
|> <CFPARAM NAME="Form.WeekChange" DEFAULT="">
|>
|> <!---  sets the start, end and maximum number of weeks --->
|> <CFSET STARTWEEK = CURRENTDATE>
|> <CFSET ENDWEEK = CURRENTDATE + 6>
|> <CFSET MAXWEEK = CREATEODBCDATE(DATEADD('WW', 4, NOW()))>
|>
|> <!---  stuff to handle the form --->  (Problem Area I think)
|> <CFIF ISDEFINED("Form.WeekChange")>
|>  <CFIF FORM.WEEKCHANGE IS 'NEXT'>
|>   <CFSET STARTWEEK = ENDWEEK + 1>
|>   <CFSET ENDWEEK = STARTWEEK + 6>
|> </CFIF>
|> </CFIF>
|>
|> <!---   output --->
|> <!---  Week At A Glance --->
|>   <TR>
|>   <CFOUTPUT>
|>   <CFLOOP INDEX="current_week" FROM="#startweek#" TO="#endweek#">
|>     #DateFormat(current_week, 'MMMM,DD,YYYY')#
|>    </TD>
|>  </CFLOOP>
|>   </CFOUTPUT>
|>   </TR>
|>
|>
|>
|> Yvette Ingram
|> Email: ingramrecruiting@erols or
|> [EMAIL PROTECTED]
|> ICQ:  21200397
|>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to