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
>
> ------------------------------
>
> Date: Mon, 12 Mar 2001 01:04:38 -0600
> From: "Bryan LaPlante" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Encrypted string in forms
> Message-ID: <001801c0aac2$b6d47c50$[EMAIL PROTECTED]>
>
> Does any one have an idea of how I can pass a string that was previously
> encrypted and then cut-n-pasted into a hidden form filed?  Kind of like
> #JSstringFormat()# will make your string safe for JavaScript, I need a way
> to safely pass and encrypted string in a hidden form field.
>
> Bryan LaPlante
> 816-347-8220
> [EMAIL PROTECTED]
> http://www.netwebapps.com
> Web Development
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> ------------------------------
>
> Date: Sun, 11 Mar 2001 23:34:22 -0800 (PST)
> From: Heidi Belal <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: Looping Next & Previous Buttons
> Message-ID: <[EMAIL PROTECTED]>
>
> Yvette!
> I think you need to assign the startweek to the next
> week as you go along as you did, but an idea that
> maybe causing the problem is that you may be resetting
> the variable STARTWEEK to the current date each time.
> Make sure you have that cfset at the beginning, and
> make sure that the code doesn't run through it each
> time you press the next button.
> I hope this helps!
> Heidi
>
> --- Yvette Ingram <[EMAIL PROTECTED]> wrote:
> > 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
>
> ------------------------------
>
> Date: Mon, 12 Mar 2001 09:39:45 +0000
> From: "Peter Lutwyche" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Slightly OT: Cookie blocking at corporate firewall level -
> what gives?
> Message-ID: <[EMAIL PROTECTED]>
>
> My colleagues and I are currently faced with the question:
>
> "If the app uses cookies, what happens if the user is behind a corporate =
> firewall that blocks cookies?".=20
>
> We know about using URL variables as an alternative, but the question we'd
=
> really like answered is "To what extent, generally speaking,  do
sysadmin's=
>  chose to block cookies at the firewall level?"=20
>
> I'd be real grateful if anyone could point me in the direction of any =
> useful stat's or URLs.
>
> Thanks
> Pete
>
> ------------------------------
>
> Date: Mon, 12 Mar 2001 09:42:07 -0000
> From: "Windle, Kevan" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Javascript: Tearing my hair out
> Message-ID: <9B9D098EAC97D411938900805FFE1B62573BBC@GBVWFSMKS00003>
>
> Thanks fro all the responses. And thanks Andy that explained why my
testing
> for the problem wouldn't work and that let me look past that and try
another
> way round it. Plus its Monday morning and everything seems so much easier.
>
>
> -----Original Message-----
> From: Andy Ewings [mailto:[EMAIL PROTECTED]]
> Sent: 08 March 2001 17:15
> To: CF-Talk
> Subject: RE: Javascript: Tearing my hair out
>
>
> Kevin
>
> I may be wrong but as soon as you execute a document.write it anhialates
the
> page i.e. the form no longer exists.  You have to use Javascript layers or
> frames to overcome this.
>
> A
>
>
>
> ------------------------------------------------------------------
> Andrew Ewings
> Project Manager
> Thoughtbubble Ltd
> http://www.thoughtbubble.net
> ------------------------------------------------------------------
> United Kingdom
> http://www.thoughtbubble.co.uk/
> Tel: +44 (0) 20 7387 8890
> ------------------------------------------------------------------
> New Zealand
> http://www.thoughtbubble.co.nz/
> Tel: +64 (0) 9 488 9131
> ------------------------------------------------------------------
> The information in this email and in any attachments is confidential and
> intended solely for the attention and use of the named addressee(s). Any
> views or opinions presented are solely those of the author and do not
> necessarily represent those of Thoughtbubble. This information may be
> subject to legal, professional or other privilege and further distribution
> of it is strictly prohibited without our authority. If you are not the
> intended recipient, you are not authorised to disclose, copy, distribute,
or
> retain this message. Please notify us on +44 (0)207 387 8890.
>
>
>
> -----Original Message-----
> From: Windle, Kevan [mailto:[EMAIL PROTECTED]]
> Sent: 08 March 2001 17:03
> To: CF-Talk
> Subject: Javascript: Tearing my hair out
>
>
> I'm using IE5. Trying to do something really simple in javascript. The
> problem I'm having is this. I can reference a form element with inline
code.
> So passing this variable to a function like this works:
>
> <input
>
ondblclick="resetwhereboxes(this.value,3,document.forms.wheres.wherefield1.n
> ame)" type="text" size="10"  name="wherefield1">
>
> then in the function:
>
> <SCRIPT type="text/javascript" language="JavaScript1.2"><!--
> function resetwhereboxes(fname){
> 1 document.write(fname);
> 2 document.write(document.forms.wheres.wherefield1.name);
> 3 document.write(document.forms[0].wherefield1.name);
>
>
> }-->
> </script>
> line 1 works. But line 2 and 3, give the error messages claiming there is
no
> such object.
>
> Anyone seen anything like this?
>
>
>
****************************************************************************
> ******
>
> The opinions expressed in this E-mail are those  of  the individual  and
> not  necessarily  the  company.  This E-mail and  any files transmitted
> with it are confidential and solely for the use of the intended recipients
>
>
****************************************************************************
> ******
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> ------------------------------
>
> Date: Mon, 12 Mar 2001 09:51:51 -0000
> From: "Philip Arnold - ASP" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Slightly OT: Cookie blocking at corporate firewall
level -what gives?
> Message-ID: <[EMAIL PROTECTED]>
>
> > My colleagues and I are currently faced with the question:
> >
> > "If the app uses cookies, what happens if the user is behind a
> > corporate firewall that blocks cookies?".
> >
> > We know about using URL variables as an alternative, but the
> > question we'd really like answered is "To what extent, generally
> > speaking,  do sysadmin's chose to block cookies at the firewall level?"
> >
> > I'd be real grateful if anyone could point me in the direction of
> > any useful stat's or URLs.
>
> We do a security exhibition website and quite a few of the website
visitors
> are behind firewalls that stop cookies, javascript and java
>
> This basically means that there's no way of using the cookies unless you
> pass the info on the URL of every hyperlink (virtually impossible)
>
> It's usually the bigger coporate companies (I believe IBM stop cookies)
and
> the more security paranoid companies that tend to do this...
>
> The only way to check is to set a temporary cookie, change page and then
> check for it's existance
>
> Philip Arnold
> Director
> Certified ColdFusion Developer
> ASP Multimedia Limited
> T: +44 (0)20 8680 1133
>
> "Websites for the real world"
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> ------------------------------
>
> Date: Mon, 12 Mar 2001 10:19:54 +0000
> From: Richard Meredith-Hardy <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Dates in OLEDB
> Message-ID: <[EMAIL PROTECTED]>
>
> ....agreed, but they could start with some common ones
>
>
>
> > The problem with that is that the list of database engines is huge, and
if
> > they decide to "enhance" the system it makes a mockery of this idea
> >
> > I think the main way of dealing with this is that you should use # for
> > Access and ' for SQL Server and (I think) Oracle... no idea about
mySQL...
> > and format the date in a non-ambiguous format (d mmm yyyy or mmm d yyyy
> > works wonders for this)
> >
> > Philip Arnold
> > Director
> > Certified ColdFusion Developer
> > ASP Multimedia Limited
> > T: +44 (0)20 8680 1133
>
>
> > Date: Sun, 11 Mar 2001 22:48:41 -0000
> > From: "Philip Arnold - ASP" <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: RE: Dates in OLEDB
> > Message-ID: <[EMAIL PROTECTED]>
> >
> > > This works. Thanks, what a pain!
> > >
> > > This immediately makes a migration to OLEDB a waste of time.  (Might
> > > look at it for future apps)
> > >
> > > It also makes me think there should be a set of new functions in CF:
> > >
> > > createDBdate(mydate,"theDB")
> > > createDBdatetime(mydatetime,"theDB")
> > >
> > > Where theDB could be "Access", "SQLServer","ODBC"(!) etc.
>
>
> --
> Regards;
>
> Richard Meredith-Hardy
> -------------------------------------------------------------
> [EMAIL PROTECTED]
> Tel: + 44 (0)1462 834776 FAX: + 44 (0)1462 732668
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> ------------------------------
>
> Date: Mon, 12 Mar 2001 10:39:19 +0000
> From: Richard Meredith-Hardy <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Verity error trapping
> Message-ID: <[EMAIL PROTECTED]>
>
> This code does a pretty good job of preventing errors in a verity search
> but it also obliterates quite a lot of the advanced functionality:
>
> <CFSET searchstring = trim(rereplacenocase(trim(searchstring),"^or |^and
> |\|@|#chr(34)#|'|<|>|!|=|\(|\)|\[|\]|#chr(44)#","","all"))>
>
> Does anyone have a re which is a bit more subtle?  In particular it
> would be nice to allow characters eg '"[]() which are permissable, but
> only in matching pairs.
>
> --
> Regards;
>
> Richard Meredith-Hardy
> -------------------------------------------------------------
> [EMAIL PROTECTED]
> Tel: + 44 (0)1462 834776 FAX: + 44 (0)1462 732668
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> ------------------------------
>
> Date: Mon, 12 Mar 2001 10:48:40 -0000
> From: Daniel Lancelot <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Dates in OLEDB
> Message-ID:
<[EMAIL PROTECTED]>
>
> Could somone summarise / point me to a location listing the advantages /
> disadvantages of OLE vs ODBC for connecting within CF...?
>
> -----Original Message-----
> From: Richard Meredith-Hardy [mailto:[EMAIL PROTECTED]]
> Sent: 12 March 2001 10:20
> To: CF-Talk
> Subject: RE: Dates in OLEDB
>
>
> .....agreed, but they could start with some common ones
>
>
>
> > The problem with that is that the list of database engines is huge, and
if
> > they decide to "enhance" the system it makes a mockery of this idea
> >
> > I think the main way of dealing with this is that you should use # for
> > Access and ' for SQL Server and (I think) Oracle... no idea about
mySQL...
> > and format the date in a non-ambiguous format (d mmm yyyy or mmm d yyyy
> > works wonders for this)
> >
> > Philip Arnold
> > Director
> > Certified ColdFusion Developer
> > ASP Multimedia Limited
> > T: +44 (0)20 8680 1133
>
>
> > Date: Sun, 11 Mar 2001 22:48:41 -0000
> > From: "Philip Arnold - ASP" <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: RE: Dates in OLEDB
> > Message-ID: <[EMAIL PROTECTED]>
> >
> > > This works. Thanks, what a pain!
> > >
> > > This immediately makes a migration to OLEDB a waste of time.  (Might
> > > look at it for future apps)
> > >
> > > It also makes me think there should be a set of new functions in CF:
> > >
> > > createDBdate(mydate,"theDB")
> > > createDBdatetime(mydatetime,"theDB")
> > >
> > > Where theDB could be "Access", "SQLServer","ODBC"(!) etc.
>
>
> --
> Regards;
>
> Richard Meredith-Hardy
> -------------------------------------------------------------
> [EMAIL PROTECTED]
> Tel: + 44 (0)1462 834776 FAX: + 44 (0)1462 732668
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> ------------------------------
>
> Date: Mon, 12 Mar 2001 11:00:41 -0000
> From: "Philip Arnold - ASP" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Dates in OLEDB
> Message-ID: <[EMAIL PROTECTED]>
>
> > Could somone summarise / point me to a location listing the advantages /
> > disadvantages of OLE vs ODBC for connecting within CF...?
>
> OLEDB is (theoretically) faster as it's using the database's "native"
> language - this isn't always faster though - some aspects will be faster,
> some slower
>
> ODBC has memory leaks on some drivers (Access specifically)
>
> ODBC dates don't work in OLEDB - you have to specify the dates in the
format
> the database expects - with ODBC, CreateODBCdate works no matter which
> server as the ODBC driver converts it for you
>
> ODBC and OLEDB have a natural limit of 64KB on field transfers - CF4.5 has
> the ability to extend this, but at a speed degridation on all queries to
> that DSN
>
> OLEDB can be a bitch to setup, but once it's working you can just let it
get
> on with it
>
> Philip Arnold
> Director
> Certified ColdFusion Developer
> ASP Multimedia Limited
> T: +44 (0)20 8680 1133
>
> "Websites for the real world"
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> ------------------------------
>
> End of CF-Talk-list V1 #206
> ***************************
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
>


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

Reply via email to