Does anyone know where the session variables are stored if Coldfusion is
running in a distributed configuration? My assumption is the session variables
are stored on the server running ColdFusion and not the web server, but you
know what they say about assuming.
Thanks,
Donnie
Sessions are stored on the server running ColdFusion.
-Mike Chabot
On Wed, May 12, 2010 at 1:07 PM, Donnie Carvajal
donnie.carva...@transformyx.com wrote:
Does anyone know where the session variables are stored if Coldfusion is
running in a distributed configuration? My assumption
with courage makes a majority. - Andrew Jackson
On May 12, 2010, at 12:07 PM, Donnie Carvajal donnie.carva...@transformyx.com
wrote:
Does anyone know where the session variables are stored if
Coldfusion is running in a distributed configuration? My assumption
is the session variables are stored
On the server running ColdFusion, but you can have some serious issues
on load-balanced servers with session variables.
On Wed, May 12, 2010 at 10:07 AM, Donnie Carvajal
donnie.carva...@transformyx.com wrote:
Does anyone know where the session variables are stored if Coldfusion is
running
ColdFusion stores the session variables in the web server local RAM, however
when using ColdFusion with distributed configuration you should store the
sessions in the database because you don't know which machine will serve the
next page causing inconsistent sessions.
Paul Alkema
http
ColdFusion stores the session variables in the web server local RAM, however
when using ColdFusion with distributed configuration you should store the
sessions in the database because you don't know which machine will serve the
next page causing inconsistent sessions.
I suspect
Hmm.. I don't think this is correct. My site doesn't pass tokens in order to
keep session variables or cookies.
When a user first lands on my http site, I set sessions/cookies and pass
them to our cart which is https and both of them are transferred just fine
and I don't pass any type cf tokens
One work around I have had for this - is to force the users to the secure
URL... IE: Links to the cart, add to cart and products (all shopping links)
are hardcoded to https://www.yoursite.com -=- that way I know the URL and
can help ensure the session variables stay intact... (Once they go
this is correct. My site doesn't pass tokens in order to
keep session variables or cookies.
When a user first lands on my http site, I set sessions/cookies and pass
them to our cart which is https and both of them are transferred just fine
and I don't pass any type cf tokens.
I don't know
Good feedback. Glad to see I'm not the only one who has had some struggles here.
I'm not the CF admin for the production sites I use, so I'm a bit unsure of
exactly what is configured. But on my test site, when I look at my session
variables, sessionid is always correctly set, whether http
happens to session variables
across this transition? It looks to me as though they are all there, but I've
observed a few unusual situations where that isn't always the case.
Any practical experience or pointers to documentation about this would be
appreciated
No, from a cookie perspective, http://mysite.com and https://mysite.com
are 2 different domains, so you need to send the session tokens across
the gap. Any of a number of approaches can work, but here's the quick
and dirty:
cflocation url=https://#mySecureURL#; addtoken=yes /
Or, if you are
Session data in ColdFusion is tied to unique combinations of user,
browser and domain. And the http and https versions of your website
are
viewed as two different domains. This is due to the normal behavior
of
ColdFusion using cookies to pass the tokens that lets it know with
is now having
problems with their session variables when logging now that it is using http.
Is this expected? Is there a session space that is different when using https
rather than http? Is it maybe not letting go of old information?
Am I explaining this well? If not, please ask questions
Since then, anyone that tried to log in when it was using
https is now having problems with their session variables
when logging now that it is using http.
Are you using the secure attribute when setting the cookies? Is the SSL
domain the same as the non-SSL domain (i.e. secure.example.com
Are you using the secure attribute when setting the cookies?
I don't know about a secure attribute. I'm not setting cookies though, but
session variables.
Is the SSL
domain the same as the non-SSL domain (i.e. secure.example.com vs.
www.example.com)?
I'm just adding an s to http
On 3/22/2010 8:55 AM, daniel kessler wrote:
Are you using the secure attribute when setting the cookies?
I don't know about a secure attribute. I'm not setting cookies though, but
session variables.
CFML relies on two values CFID and CFTOKEN, or a single value JSESSIONID
From a session perspective, the session cookie (the browser side of the
session) for https://www.mysite.com is *not* shared with the session
cookie for http://www.mysite.com. If crossing from one to the other,
therefore, there are 2 options:
1) User has to log back in after the switch
2)
I'm not setting cookies though, but session variables.
That's what I get for responding to the list while on the phone, doh!
-Justin
~|
Want to reach the ColdFusion community with something they want? Let them know
From a session perspective, the session cookie (the browser side of the
session) for https://www.mysite.com is *not* shared with the session
cookie for http://www.mysite.com.
It sounds like they then won't mess with each other. If I wanted to get rid of
the https variables then I could just
On 3/22/2010 10:35 AM, daniel kessler wrote:
Honestly, I'm not sure I'm understanding the problem and I am just trying to
work through it.
Session data in ColdFusion is tied to unique combinations of user,
browser and domain. And the http and https versions of your website are
viewed
We're seeing some weird behavior on one of our applications.
It looks like if we check use j2ee session variables in the admin,
the our Application.cfc's onSessionStart() isn't called. (I put a
dump and an abort in onSessionStart() to verify it).
Is there something different about j2ee
We're seeing some weird behavior on one of our applications.
It looks like if we check use j2ee session variables in the admin,
the our Application.cfc's onSessionStart() isn't called. (I put a
dump and an abort in onSessionStart() to verify it).
Is there something different about j2ee
Nope. (I had done everything fresh except for actually deleting the
jsessionid cookies, but removing all of my cookies didn't fix the
issue)
Any other things?
We can put in some kludge code in onrequeststart() to look for the
existence of one of the session variables and manually call
On Fri, Mar 12, 2010 at 6:35 PM, Scott Brady wrote:
It looks like if we check use j2ee session variables in the admin,
the our Application.cfc's onSessionStart() isn't called. (I put a
dump and an abort in onSessionStart() to verify it).
cfcomponent
cfset this.sessionManagement
Ugh. I knew it was something obvious.
I swear it's not my code. I'm just troubleshooting. :)
Thanks!
Scott
On Fri, Mar 12, 2010 at 12:19 PM, Jochem van Dieten joch...@gmail.com wrote:
Doesn't your app have a name?
Jochem
--
-
Scott Brady
=
The key is the the cfapplication name has to match the application name that
you have set you your application.cfm file. As long as the names match you
should be able to access and manipulate your session variables. Hope this helps
your application.cfm file. As long as the names match
you should be able to access and manipulate your session variables. Hope
this helps
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
has to match the application name that
you have set you your application.cfm file. As long as the names match you
should be able to access and manipulate your session variables. Hope this
helps
~|
Adobe® ColdFusion® 8
. As long as the names match
you should be able to access and manipulate your session variables. Hope
this helps
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http
access=remote name=
The key is the the cfapplication name has to match the application name
that you have set you your application.cfm file. As long as the names match
you should be able to access and manipulate your session variables. Hope
this helps
I'm trying to create a preview setup via cf, jquery, and ajax for
a form.
Before I get too deep into all this code, let me just ask this:
Can I set session variables in the cfc method to the values of the
form variables and use those back on the calling page? I'm doing it
this way to prevent
To answer your core question, yes, you can set session variables
inside CFCs and they'll be set just as effectively as setting them
anywhere else.
I didn't quite follow what you're doing, but it sounds like you
probably have a race condition somewhere. Logging is often the best
way to find
Rick Faircloth wrote:
Thoughts? Suggestions?
Thanks,
Rick
For ANY CFML code to share application and|or session state data they
must share the same Application name, usually set with a cfapplicaiton
name=... OR this.name= line in either Application.cfm or
Application.cfc files.
When
on the list...
Rick
On Wed, Apr 29, 2009 at 4:25 PM, Barney Boisvert bboisv...@gmail.comwrote:
To answer your core question, yes, you can set session variables
inside CFCs and they'll be set just as effectively as setting them
anywhere else.
I didn't quite follow what you're doing, but it sounds like
Rick Faircloth wrote:
The calling page isn't refreshing, it's just having the content *added*
to the page via jquery.
JQuery is *NEVER* going to have access to read or write ColdFusion
session data. ColdFusion session data is on the server and JQuery is on
the client and they do not share
Write a Coldfusion function that sets a structure equal to session
variables and and pass that structure back to qQuery. Then the client
has access to the session data.
On Wed, Apr 29, 2009 at 1:41 PM, Ian Skinner h...@ilsweb.com wrote:
Rick Faircloth wrote:
The calling page isn't refreshing
: Is it not possible to set session variables in a cfc method?
I'm trying to create a preview setup via cf, jquery, and ajax for
a form.
Before I get too deep into all this code, let me just ask this:
Can I set session variables in the cfc method to the values of the
form variables and use those
Thanks for the insight, Ian, but that's not a problem here.
I have the components under the webroot.
Rick
On Wed, Apr 29, 2009 at 4:26 PM, Ian Skinner h...@ilsweb.com wrote:
Rick Faircloth wrote:
Thoughts? Suggestions?
Thanks,
Rick
For ANY CFML code to share application and|or
-
From: Rick Faircloth [mailto:r...@whitestonemedia.com]
Sent: Wednesday, April 29, 2009 1:14 PM
To: cf-talk
Subject: Is it not possible to set session variables in a cfc method?
I'm trying to create a preview setup via cf, jquery, and ajax for
a form.
Before I get too deep into all
, Apr 29, 2009 at 4:51 PM, Maureen mamamaur...@gmail.com wrote:
Write a Coldfusion function that sets a structure equal to session
variables and and pass that structure back to qQuery. Then the client
has access to the session data.
On Wed, Apr 29, 2009 at 1:41 PM, Ian Skinner h...@ilsweb.com
you have two input fields (3rd and 4th) where name attribute is name3 and the
first 2 input fields need to have id tags
Hi All,
I am trying to merge three textfield values (month,day and year for
DOB)into one and trying to store in a session. Javascript is a client
side variable
Hi All,
I am trying to merge three textfield values (month,day and year for DOB)into
one and trying to store in a session. Javascript is a client side variable and
I am unable to store it to session variable . Can anyone help me with this?
See below is the code I am trying to do and I also
I am using PayPal and it will be posting me asynchronously to confirm payment,
so I don't think I will have direct access to my session variables. I would
like to do something to use them from server memory rather than having to
create a temporary file and pass its record id around
On the post back you can get them
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
On the post back you can get them
? How ??
Maybe I'm missing something but it was my understanding that the POST would not
think it is running my application so it would not have the variables.
~|
Adobe®
I have a modal window, ajax-based login setup and
have been working with it for a month now, locally,
and it's been working fine.
Now that I've transferred it to my server, I can't
get it to set session variables. Yes, session variables
are enabled in CF Admin. It's a private VPS, so sharing
: Tuesday, January 06, 2009 9:48 PM
To: cf-talk
Subject: Why aren't my session variables being set during login?
I have a modal window, ajax-based login setup and
have been working with it for a month now, locally,
and it's been working fine.
Now that I've transferred it to my server, I can't
. But
yes session variables can have a performance impact.
Secondly, when others on the list build apps, what criteria do you use
when determining when and where to use session vars?
I use session liberally because they are simple and handy. But I work
on low load corporate intranet
. But
yes session variables can have a performance impact.
Secondly, when others on the list build apps, what criteria do you use
when determining when and where to use session vars?
I use session liberally because they are simple and handy. But I work
on low load corporate intranet
that uses session variables all over the
place.. I think every form variable has been moved to the session scope.
I'm in the process of documenting them, and I have 67 variables
documented so far.
My question is: How much is too much and will having this many session
vars affect performance
I've inherited an application that uses session variables all over the
place.. I think every form variable has been moved to the session scope.
I'm in the process of documenting them, and I have 67 variables
documented so far.
My question is: How much is too much and will having this many session
the 67 variables containing booleans. But
yes session variables can have a performance impact.
Secondly, when others on the list build apps, what criteria do you use
when determining when and where to use session vars?
I use session liberally because they are simple and handy. But I work
on low
When creating session structures is it still necessary to cflock in cf8? I
think i read somewhere that it was no longer needed but I was probably
dreaming.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic
In virtually every case, locking session vars has been completely
unnecessary since CFMX (6.0) came out.
On Sun, Dec 7, 2008 at 3:12 PM, j s [EMAIL PROTECTED] wrote:
When creating session structures is it still necessary to cflock in cf8? I
think i read somewhere that it was no longer needed
Lock to avoid problems with race conditions in the places where these
might be an issue. Many Web applications have places where unhandled
race conditions can be a problem.
-Mike Chabot
On Sun, Dec 7, 2008 at 4:36 PM, Matt Quackenbush [EMAIL PROTECTED] wrote:
In virtually every case, locking
prevent multiple processes from trying to instantiate the shared
variable all at the same time.
~Brad
- Original Message -
From: j s [EMAIL PROTECTED]
To: cf-talk cf-talk@houseoffusion.com
Sent: Sunday, December 07, 2008 3:12 PM
Subject: locking session variables in cf8
When creating
Why is it that I can get a I thought a session.cfid out of a
single server config, but not a cluster?
From the code below, I get an error on a cluster configuration.
Element CFID is undefined in SESSION.
As others have already mentioned, session replication requires the use of
J2EE
Brain Dumbledore is dead: http://www.hpana.com/news.19531.html
You are an imposter!
Robert B. Harrison
Director of Interactive services
Austin Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119
F : 631.434.7022
www.austin-williams.com
Great advertising can't
Why is it that I can get a I thought a session.cfid out of a single server
config, but not a cluster?
From the code below, I get an error on a cluster configuration.
Element CFID is undefined in SESSION.
The error occurred in D:\Inetpub\wwwroot\website\Application.cfm: line 9
7 :
8 : !---
I could be way off here and someone with more knowledge in this area will
hopefully pipe up, but should you not be using jsessionid?
Adrian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 30 July 2008 16:47
To: CF-Talk
Subject: Single vs Cluster - Session
variables as all these
applications are running on different servers at different locations. Can
someone help me how can I destroy all the session variables on different
applications. Is there a way I can use cfhttp or I should use something else.
Thanks in advance for any help you provide
Hello,
Check the ff on all your cluster members:
1. REPLICATE SESSIONS option enabled
2. J2EE Sessions enabled
Also, when initially setting up, you'd have to stop and start all instances.
Btw, are you clustering multiple instances on the same machine (vertical
cluster) or across physical
variables as all these applications are running
on different servers at different locations. Can someone help me how
can I destroy all the session variables on different applications. Is
there a way I can use cfhttp or I should use something else. Thanks in
advance for any help you provide
From: Brian Dumbledore [mailto:[EMAIL PROTECTED]
Brain Dumbledore is dead: http://www.hpana.com/news.19531.html
You are an imposter!
Robert B. Harrison
Director of Interactive services
Austin Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119
F :
Is there a difference between regular application, session variable managment
vs how it
should be done using sticky sessions?
Does anyone know of any good articles?
Thanks
D
~|
Adobe® ColdFusion® 8 software 8 is the most
, 2008 11:57 PM
To: CF-Talk
Subject: Re: Would this create session variables?
try this:
cfloop list=#get_agent.columnList# index=i
cfset session[i] = get[i][1] /
/cfloop
cheers,
barneyb
On Mon, Jun 16, 2008 at 8:44 PM, Rick Faircloth
[EMAIL PROTECTED] wrote:
Would this part
session variables?
Thanks for the tip and code, Alan Barney!
It's working great!
I was concerned that I may end up having to hard-code
the variables and that would greatly reduce the
reusability of the cfc.
Rick
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent
Would this part of a cffunction create
individual session variables from the query?
cfquery name=get_agent datasource=c21ar
SELECT *
FROM our_agents
WHERE website = '#arguments.website#'
/cfquery
cfset session.get_agent = get_agent /
cfif get_agent.recordCount
Rick,
What you have literally done is switch scopes on your query variable:
cfquery name=get_agent datasource=c21ar
SELECT *
FROM our_agents
WHERE website = '#arguments.website#'
/cfquery
cfset session.get_agent = get_agent /
get_agent is actually, variables.get_agent, which is
try this:
cfloop list=#get_agent.columnList# index=i
cfset session[i] = get[i][1] /
/cfloop
cheers,
barneyb
On Mon, Jun 16, 2008 at 8:44 PM, Rick Faircloth
[EMAIL PROTECTED] wrote:
Would this part of a cffunction create
individual session variables from the query?
cfquery name=get_agent
Scott Stewart wrote:
I'm looking for different possibilities
it's a rig until they move the sites to the same server...
You efforts are probably better spent speeding up the site move.
Jochem
~|
Adobe® ColdFusion® 8
PROTECTED]
Sent: Friday, May 09, 2008 3:20 AM
To: CF-Talk
Subject: Re: Session variables across servers
Scott Stewart wrote:
I'm looking for different possibilities
it's a rig until they move the sites to the same server...
You efforts are probably better spent speeding up the site move
Hey all,
We've got a weird temporary issue.. We have two websites, on different
servers under different domains.
They need one login for both sites.
My understanding is that J2EE Session variables will persist between
servers/domains.
How do you implement this in ColdFusion?
Thanks
-Talk
Subject: Session variables across servers
Hey all,
We've got a weird temporary issue.. We have two websites, on different
servers under different domains.
They need one login for both sites.
My understanding is that J2EE Session variables will persist between
servers/domains.
How do
, 2008 11:57 AM
To: CF-Talk
Subject: RE: Session variables across servers
Session will persist between two domains if you have the same
cfapplication on both sites and keep passing in the same cfid and
cftoken values when going from one domain to another.
Session replication between physical servers
: Thursday, May 08, 2008 11:57 AM
To: CF-Talk
Subject: RE: Session variables across servers
Session will persist between two domains if you have the same
cfapplication on both sites and keep passing in the same cfid and
cftoken values when going from one domain to another.
Session replication between
We've got a weird temporary issue.. We have two websites, on
different servers under different domains.
They need one login for both sites.
My understanding is that J2EE Session variables will persist
between servers/domains.
If you're using cookies for your session tokens, they can't
Watts [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 12:22 PM
To: CF-Talk
Subject: RE: Session variables across servers
We've got a weird temporary issue.. We have two websites, on
different servers under different domains.
They need one login for both sites.
My understanding
Hello,
Just a basic question about session variables.I can't get them to 100% work as
I want. Maybe I don't understand so that's when it's time to turn to the list :)
I want to use session variables that expire a) when the user closes the browser
OR b) when a session times out,whatever comes
Hello,
Just a basic question about session variables.I can't get them to 100% work as
I want. Maybe I don't understand so that's when it's time to turn to the list :)
I want to use session variables that expire a) when the user closes the browser
OR b) when a session times out,whatever comes
Just use J2EE session variables within the CF administrator.
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: marc -- [mailto:[EMAIL PROTECTED]
Sent: Friday, May 02, 2008 4:53 PM
To: CF-Talk
Subject: Session variables
Just a basic question about session variables.I can't get
them to 100% work as I want. Maybe I don't understand so
that's when it's time to turn to the list :) I want to use
session variables that expire a) when the user closes the
browser OR b) when a session times out,whatever comes
Ok, I found the cause:
onSessionStart()
cfset THIS.sessionTimeout = #CreateTimeSpan(0,0,0,10)#
cfoutput#THIS.sessionTimeout #/cfoutput
outputs 10. Which means 10 days since the createTimespan() function returns
units of days (eg CreateTimespan(1,0,0,0)eq 1 and CreateTimespan(0,12,0,0) eq
0.5)
Can CF 8 share .NET session variables out of the box w/o a 3rd party
product like blue dragon?
Thanks,
Daron Smith
PSEA E-mail Firewall annotation on Thu Jan 10 2008 07:49:49
-
NOTICE: Only the individual sender
Hi, all.
Now, remember, I'm still learning to write CF8 code straight
from CF4.5 code, so.
Is my understanding correct that I no longer need to place
cflocks around any setting or reading of session variables?
Thanks,
Rick
On 12/9/07, Rick Faircloth [EMAIL PROTECTED] wrote:
Hi, all.
Now, remember, I'm still learning to write CF8 code straight
from CF4.5 code, so.
Is my understanding correct that I no longer need to place
cflocks around any setting or reading of session variables?
Thanks,
Rick
Not really. You still need to lock around any potential race conditions.
Perosnally I tend not to lock reads and always lock writes, unless
there is a race condition possibility on the read, in which case I
lock that too..
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 09, 2007 1:18 PM
To: CF-Talk
Subject: No Longer Need to Lock Session Variables?
Hi, all.
Now, remember, I'm still learning to write CF8 code straight
from CF4.5 code, so.
Is my
Casey, Matt, Jim...
Thanks for the info!
Rick
-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 09, 2007 2:14 PM
To: CF-Talk
Subject: RE: No Longer Need to Lock Session Variables?
In short you no longer need to do this to ensure server
Subject: RE: No Longer Need to Lock Session Variables?
In short you no longer need to do this to ensure server reliability (the
structures which hold this information are now thread-safe) - no more
crashes because of locking. (5 year-old Yay!)
(Just kidding - we went straight from 4.5 to 7 so I
09, 2007 8:54 PM
To: CF-Talk
Subject: Re: No Longer Need to Lock Session Variables?
I didn't see earlier posts to this thread, but it is worth noting that
if you are using Application.cfc and calling onApplicationStart() or
onSessionStart() explicitly, you will still need to lock
Okay, I've searched the archives but want to get it straight. I've built a
shopping cart using session variables. But, it looks like if a user has cookies
turned off, the cart won't retain the contents. Is this correct?
I've also read about using URLSessionFormat, but seen some posting
Okay, I've searched the archives but want to get it straight. I've built a
shopping cart using session variables. But, it looks like if a user has
cookies turned off, the cart won't retain the contents. Is this correct?
Yes, if you are not passing the CFID and CFTOKEN with a request
Message-
From: Curt Schryver
To: CF-Talk
Sent: Thu May 24 19:57:28 2007
Subject: Session variables and cookies
Okay, I've searched the archives but want to get it straight. I've built a
shopping cart using session variables. But, it looks like if a user has
cookies turned off, the cart won't
to
upgrade or enable cookies if they want to use the site to its fullest =)
Just my $.02
Chris Peterson
-Original Message-
From: Curt Schryver [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 2:57 PM
To: CF-Talk
Subject: Session variables and cookies
Okay, I've searched the archives
Hi,
I want to edit the values of someone else's session variables. I have a
session variable named session.user.isLoggedIn. I want to set it to 0. I have
the session.sessionID.
The reason I want to do this is because I want to be able to close my old
session when I log in from another
on Ray Camden's
site.
Good luck,
Mike Chabot
On 5/10/07, Won Lee [EMAIL PROTECTED] wrote:
Hi,
I want to edit the values of someone else's session variables. I have a
session variable named session.user.isLoggedIn. I want to set it to 0. I
have the session.sessionID.
The reason I want to do
off.
On 5/11/07, Won Lee [EMAIL PROTECTED] wrote:
Hi,
I want to edit the values of someone else's session variables. I have a
session variable named session.user.isLoggedIn. I want to set it to 0. I
have the session.sessionID.
The reason I want to do this is because I want to be able
Hey all..
Can somone post a quick overview of the advantages/disadvantages of J2EE
session vars vs. standard CF Session vars.
my understanding is that the J2EE vars will span between clustered servers
amongst other things.
thanks
sas
101 - 200 of 1178 matches
Mail list logo