use the variables scope for page vars..
Clint
- Original Message -
From: "Thane Sherrington" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 31, 2003 10:16 AM
Subject: RE: Deleting session variables
> At 04:05 PM 01/31
At 04:05 PM 01/31/03 +, Robertson-Ravo, Neil (RX) wrote:
>True, I do agree that you should scope everything but ColdFusion doesn't
>strictly enforce it so you dont have to (whos fault is that?), also with a
>good naming convention you really shouldn't have any naming conflicts - not
>a page by
To delete the session vars use
Steve Burcham
-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 9:32 AM
To: CF-Talk
Subject: Deleting session variables
Using CF5.
I setup two session variables on one page, and on the next, I check t
-
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2003 16:03
To: CF-Talk
Subject: Re: Deleting session variables
For one thing you should always "scope" your reference to a var. It is
possible that somewhere on the page, or in the URL, or in a FORM var, you
passed one with t
At 04:55 PM 01/31/03 +0100, Pascal Peters wrote:
>You should check
>
> MissedQuestionID Still Defined.
>
Of course. How stupid of me. :) Thanks.
T
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
For one thing you should always "scope" your reference to a var. It is
possible that somewhere on the page, or in the URL, or in a FORM var, you
passed one with the same name as your session var.
- Original Message -
From: "Thane Sherrington" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROT
You should check
MissedQuestionID Still Defined.
-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 31 januari 2003 16:32
To: CF-Talk
Subject: Deleting session variables
Using CF5.
I setup two session variables on one page, and on the next, I
structdelete(session, "varName");
mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 10:32 AM
To: CF-Talk
Subject: Deleting session variables
Using CF5.
I setup two session variables on one page, and on the next, I check them
and then at the end of the second page, I use this cod
7;If there must be trouble, let it be in my day, that my child may have
peace'..."
- Thomas Paine, The American Crisis
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 4:24 PM
To: CF-Talk
Subject: RE: RE: deleting session varia
"Success is a journey, not a destination!!"
Doug Brown
- Original Message -
From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 4:23 PM
Subjec
> The cfid and cftoken are stored in the session struct however
> (but I don't know what they are doing there...).
CF has to store the CFID and CFTOKEN values, and compare them against those
received from the browser to determine if those are your session variables.
Dave Watts, CTO, Fig Leaf So
> In your CFapplication tag set the attribute "setClientCookies"
> to NO. That way the CFID and CFTOKEN are stored in the session
> struct and when the browser closes there is no persistence.
>
> I should really learn to be more explicit in my short answers.
>
> If setClientCookies is set to Y
ge-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 2:41 PM
To: CF-Talk
Subject: Re: RE: deleting session variables when browser is closed
Hmm, I don't think that's true either.
Setting setclientcookies to "no" means that any links mu
Original Message-
From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:33 PM
To: CF-Talk
Subject: Re: deleting session variables when browser is closed
thankee kindly
Shawn Regan wrote:
>
>
>
>
>
>
>
> -Shawn Regan
>
nal Message -
From: Bryan Love <[EMAIL PROTECTED]>
Date: Wednesday, March 20, 2002 3:18 pm
Subject: RE: deleting session variables when browser is closed
> Very well then.
>
> In your CFapplication tag set the attribute "setClientCookies" to
> NO. That
> way t
PROTECTED]
+---+
"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
- Thomas Paine, The American Crisis
-Original Message-
From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:33 PM
To: CF-Talk
Subject:
Umm, no.
- Original Message -
From: Bryan Love <[EMAIL PROTECTED]>
Date: Wednesday, March 20, 2002 2:17 pm
Subject: RE: deleting session variables when browser is closed
> session variables are automatically deleted when the browser is
> closed.That is
thankee kindly
Shawn Regan wrote:
>
>
>
>
>
>
>
> -Shawn Regan
>
> -Original Message-
> From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 1:15 PM
> To: CF-Talk
> Subject: deleting session variables when browser is closed
>
>
> I seem to re
> Sent: Wednesday, March 20, 2002 4:18 PM
> To: CF-Talk
> Subject: RE: deleting session variables when browser is closed
>
>
> session variables are automatically deleted when the browser
> is closed. That is their nature.
>
> +
PROTECTED]]
Sent: Wednesday, March 20, 2002 1:24 PM
To: CF-Talk
Subject: Re: deleting session variables when browser is closed
OK. Then is there a reason why they might not? I can close all windows,
relaunch the browser and there they are.
Bryan Love wrote:
> session variables are automati
> session variables are automatically deleted when the browser
> is closed. That is their nature.
No, they're not. The server doesn't know when the browser is closed. It only
knows that some period has passed since the last request from that browser.
Also, by default, the cookies created by CF a
-Shawn Regan
-Original Message-
From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:15 PM
To: CF-Talk
Subject: deleting session variables when browser is closed
I seem to remember that once upon a time code was posted to delete a
session var
OK. Then is there a reason why they might not? I can close all windows,
relaunch the browser and there they are.
Bryan Love wrote:
> session variables are automatically deleted when the browser is closed.
> That is their nature.
__
session variables are automatically deleted when the browser is closed.
That is their nature.
+---+
Bryan Love
Macromedia Certified Professional
Internet Application Developer
Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-
We do have one reason for not using session vars.
Clustering.
It takes out the need to worry about the variables being held in memory.
Paul
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 07, 2001 7:57 AM
To: CF-Talk
Subject: RE: deleting session
> On first impression using client and session in the same app
> could be viable if;
>
> 1. client requires accessing client storage while session
> "stays within" the CFAS memory space.
> 2. if there are vars that need to persist after a session
> and that are useful to have readily available f
use StructDelete(). use "session" as the key and just use the session var
name.
-Original Message-
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 2:32 PM
To: CF-Talk
Subject: deleting session variables
Hi,
I am using this code to delete my session variables when
From: "Dave Watts" <[EMAIL PROTECTED]>
Subject: RE: deleting session variables
> A better question for you, though, might be why you're using both Session
> and Client variables - two ways of doing the same thing? That's probably not
> the best approach.
&
> I am using this code to delete my session variables when a
> user closes their browser:
>
>
>
>
>
>
>
>
> The only problem is that it also deletes my client variables
> upon closing the browser. Is there any way to just delete session
> variables and leav
-Original Message-
From: Scott Wolf [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 19, 2000 11:14 PM
To: CF-Talk
Subject: RE: Deleting Session Variables
Will arraydelete kill all of the session vars for just that one session?
I'm trying to
this works in 4.0.1 as well.
-Original Message-
From: Christopher Olive, CIO [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 20, 2000 6:49 AM
To: CF-Talk
Subject: RE: Deleting Session Variables
actually, SESSION variables are in a structure (in 4.5+). you can do a
StructDelete
actually, SESSION variables are in a structure (in 4.5+). you can do a
StructDelete(SESSION, varname) to get rid of a particular SESSION variable.
chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com
-Original Message-
From: Scott Wolf [mailto:[EMAIL PROTEC
eting Session Variables
Thanks for the help. I've got it working now. :P
Scott Wolf
-Original Message-
From: Bill Killillay [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 20, 2000 2:41 AM
To: CF-Talk
Subject: RE: Deleting Session Variables
Rob,
Seems to me that if you do it this
on 11/20/00 5:40 PM, Bill Killillay at [EMAIL PROTECTED] wrote:
> Seems to me that if you do it this way, your not only
> expiring the session var's for the intended user, but also
> for everybody else using that "application" at that time.
Hmm. I don't think it works that way. This method is re
Thanks for the help. I've got it working now. :P
Scott Wolf
-Original Message-
From: Bill Killillay [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 20, 2000 2:41 AM
To: CF-Talk
Subject: RE: Deleting Session Variables
Rob,
Seems to me that if you do it this way, your not
user's session.
>
> Scott Wolf
>
> -Original Message-
> From: Scott M. Berry [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 20, 2000 2:13 AM
> To: CF-Talk
> Subject: Re: Deleting Session Variables
>
>
> Session variables are stored in an array. Yo
Rob,
Seems to me that if you do it this way, your not only
expiring the session var's for the intended user, but also
for everybody else using that "application" at that time.
> Just expire the session in Application.cfm:
>
>
> name="myapp"
> sessionmanagement="yes"
>
on 11/20/00 5:13 PM, Scott Wolf at [EMAIL PROTECTED] wrote:
> Will arraydelete kill all of the session vars for just that one session?
> I'm trying to write a logoff page that completely ends a session, and
> I just want to make sure that I can scrap all the vars without affecting
> any other use
Scott,
Here is the method that I use. Hope it helps some.
> How can
> I remove a session variable completely? I know I
> can change
> the value using CFSET (i.e. Session.LoggedIn = "1">)
> but I don't know how to remove it altogether.
~~~
m: Scott M. Berry [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 20, 2000 2:13 AM
To: CF-Talk
Subject: Re: Deleting Session Variables
Session variables are stored in an array. You can kill the array
(arraydelete()) but that will kill all the vars and Allaire does not
recommend that. You can p
Session variables are stored in an array. You can kill the array
(arraydelete()) but that will kill all the vars and Allaire does not
recommend that. You can probably do some nifty functions by converting the
array to a list, and finding out the position of the var you want to delete
and then doin
41 matches
Mail list logo