They also, by default, do not persist on the client and will end when the
browser closes.
--- Ben
-Original Message-
From: Scott Stewart [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 2:14 PM
To: CF-Talk
Subject: J2EE session variables
Hey all..
Can somone post a quick
I create session variables on user login within CF. Is there some
reasonable way to a .NET application to pick up and use those session
variables?
Rick Colman
~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 MX7
Well, Bluedragon.NET would no doubt do it, but in CF you'd probably
have to use some sort of webservice or other integration.
On 1/25/07, Richard Colman [EMAIL PROTECTED] wrote:
I create session variables on user login within CF. Is there some
reasonable way to a .NET application to pick up
getting CF session variables
Well, Bluedragon.NET would no doubt do it, but in CF you'd probably
have to use some sort of webservice or other integration.
On 1/25/07, Richard Colman [EMAIL PROTECTED] wrote:
I create session variables on user login within CF. Is there some
reasonable way to a .NET
-
From: James Holmes
To: CF-Talk
Sent: Wed Jan 24 23:59:34 2007
Subject: Re: .NET getting CF session variables
Well, Bluedragon.NET would no doubt do it, but in CF you'd probably
have to use some sort of webservice or other integration.
On 1/25/07, Richard Colman [EMAIL PROTECTED] wrote:
I
Hello everyone I am new to the house of fusion and look forward to
communicating with everyone. I am using coldfusion MX 6.1 and have noticed
several references in many articles that puzzle my mind. The first one
includes that session variables are referred as shared data. The second one
Hello everyone I am new to the house of fusion and look
forward to communicating with everyone. I am using
coldfusion MX 6.1 and have noticed several references in many
articles that puzzle my mind. The first one includes that
session variables are referred as shared data. The second
is it necessary to pass the
session information for a user in the URL as that user
navigates a site? If I remember correctly, some of this
depends on whether cookies are enabled on the browser and
whether J2EE session variables are enabled. Can anyone give
me a quick primer on this or point
Hi all,
Just a quick question. When is it necessary to pass the session
information for a user in the URL as that user navigates a site? If I
remember correctly, some of this depends on whether cookies are enabled
on the browser and whether J2EE session variables are enabled. Can
anyone
Just a quick question. When is it necessary to pass the
session information for a user in the URL as that user
navigates a site? If I remember correctly, some of this
depends on whether cookies are enabled on the browser and
whether J2EE session variables are enabled. Can anyone give
hi, i am trying to reference session variables in javascript and cant work out
why i am getting an error:
the code i am getting an error on is:
for(i=1; i=cfoutput#structcount(session.milestone)#/cfoutput;i++)
{
alert(cfoutput#session.milestone[i].name#/cfoutput);
}
the milestone array
cfoutput#structcount(session.milestone)#/cfoutput
drop the quotes.
On 11/1/06, Richard White [EMAIL PROTECTED] wrote:
hi, i am trying to reference session variables in javascript and cant work
out why i am getting an error:
the code i am getting an error on is:
for(i=1; i=cfoutput
the code i am getting an error on is:
for(i=1;
i=cfoutput#structcount(session.milestone)#/cfoutput;i++)
You're telling JavaScript that it's a string, with those double quotes.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber
on the server side with a Cold
Fusion loop, or create a JavaScript array and then loop over that.
~Brad
-Original Message-
From: Richard White [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 4:06 PM
To: CF-Talk
Subject: very off referencing of session variables
hi, i am
You're telling JavaScript that it's a string, with those double quotes.
thanks dave but even if i take them away it still says the same error :(
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
thanks for the replies
if i take the quotes away when using the array it doesnt work:
alert(cfoutput#session.milestone[1].name#/cfoutput);
this doesnt work but if i put the quotes it does:
alert(cfoutput#session.milestone[1].name#/cfoutput);
even if i try it both ways with the i for the index
thanks brad that makes alot of sense actually.
so just to make sure that i have it right, you can access a normal variable
such as session.name but not an array such as the one that i specified above
session.module[index]
thanks very much
alert(string);
alert(number);
alert(boolean);
that's why it works with the alert. strings in an alert need to be in
quotes. other values such as numerics or booleans do not.
can you do me a favor and view the source of your page and copy/paste
the rendered JavaScript? or if possible give a
do you maybe have a simple example or suggesstion on how i can create an array
or something that javascript can access. The only thing is the control i am
using too populate with the data from the array in the session variable must be
done in javascript.
i could use a cfloop on the server but
as far as i can tell, your code is fine (as far as mixing CF and JS).
you're not using JS to try and manipulate the CF variables, so i there
shouldn't be any issues there.
On 11/1/06, Richard White [EMAIL PROTECTED] wrote:
thanks brad that makes alot of sense actually.
so just to make sure
Oops.
My bad. Brad was spot-on (sorry Brad).
Here's a snippet taking a CF array and converting it to a JS array,
which can then be looped over by the JS.
cfset myArray = arrayNew(1) /
cfset myArray[1] = Tom /
cfset myArray[2] = Dick /
cfset myArray[3] = Harry /
cfoutput
script
thanks charlie if i view the page source it stops when getting to that stage as
says
for(i=1; i=4;i++)
{
alert(
the code i am using to get that is:
for(i=1; i=cfoutput#structcount(session.milestone)#/cfoutput;i++)
{
alert(cfoutput#session.milestone[i].name#/cfoutput);
}
strangely enough if i use a different variable such as index then it says that
variable index is undefined even if i decalre it above it with var index = 1;
and then use it within the loop
~|
Introducing the Fusion Authority
thanks charlie, really appreciate it, i have been tearing my hair out over this
for hours :)
thanks brad and charlie
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion
works perfect thanks :)
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
Walter,
The following code works correctly if call directly, but if it is called
remotely (XMLHTTP, Spry) the two values are passed ok but the
session.variables are nowhere else to be seen after refreshing the page.
Use the urlSessionFormat() function on the url you're calling via
XMLHTTP/Spry:
session variables in other pages are set and retained as expected.
Just in case my cfapplication is:
cfapplication name=#prefix#_blog_#blogname#
clientManagement = no
setClientCookies = no
setDomainCookies = no
loginStorage = session
sessionManagement = yes
sessionTimeout = #CreateTimeSpan
Qasim Rasheed wrote:
Rick,
Here is a blog post from Ben Forta on a similar topic.
http://www.forta.com/blog/index.cfm/2006/9/24/Flex-And-Session-State-Management
Thanks. However, it doesn't really apply. Ben says:
So, the answer to the question how do I maintain session
I've done this seemed to work fine for me. The Flex SWF is in the same HTTP
container as your cfms so it should be fine.
DK
On 10/16/06, Rick Root [EMAIL PROTECTED] wrote:
Qasim Rasheed wrote:
Rick,
Here is a blog post from Ben Forta on a similar topic.
I'm sure this isn't best practice, but I'm working with the menu event
gateway example that ships with CF7 and I'm trying to generate the menu from a
database replacing the hard-coded menu that is there. The menu is stored in a
session variable and I need to dynamically assign the session name
On 10/16/06, Dave Hoff [EMAIL PROTECTED] wrote:
I'm sure this isn't best practice, but I'm working with the menu event
gateway example that ships with CF7 and I'm trying to generate the menu from
a database replacing the hard-coded menu that is there. The menu is stored in
a session
Thanks Rob. I'll try and paste the entire code below.
for(i=1; i LTE getTopLevel.recordset.recordcount; i=i+1)
{
tempName = getTopLevel.recordset.name[i];
tempCFC = gateway.imified.apps. getTopLevel.recordset.cfc_name[i];
tempMethod =
Updated: Fixed!!
Thanks Rob, assigning the vars using: session['M' i] did the trick.
I'm sure this isn't best practice, but I'm working with the menu
event gateway example that ships with CF7 and I'm trying to generate
the menu from a database replacing the hard-coded menu that is there.
On 10/16/06, Dave Hoff [EMAIL PROTECTED] wrote:
Thanks Rob. I'll try and paste the entire code below.
for(i=1; i LTE getTopLevel.recordset.recordcount; i=i+1)
{
tempName = getTopLevel.recordset.name[i];
tempCFC = gateway.imified.apps.
You have session.root.addChild.
I take it that there is a CFC named root.cfc in your session scope with the
method of addChild?
If this is so and you are using cfscript, why not just call the method?
session.root.addChild(name=#tempName#, key=#i#);
You don't have to prefix a temporary variable
Douglas Knudsen wrote:
I've done this seemed to work fine for me. The Flex SWF is in the same HTTP
container as your cfms so it should be fine.
Hmm... I've figured out *WHY* I'm having trouble.
my application is in /tools/entitylookup3/
At one time, I had that directory configured to use a
generated
HTML.
I'd like to use session variables for a few things, but I'm finding that
session variables which are available on the Coldfusion pages are *NOT*
available in Flex remoting calls.
I have some code in my CFC that emails the session scope to me, and the
content
Ping
Rick Root wrote:
I have a hybrid application that uses both Flex and coldfusion generated
HTML.
I'd like to use session variables for a few things, but I'm finding that
session variables which are available on the Coldfusion pages are *NOT*
available in Flex remoting calls
I have a hybrid application that uses both Flex and coldfusion generated
HTML.
I'd like to use session variables for a few things, but I'm finding that
session variables which are available on the Coldfusion pages are *NOT*
available in Flex remoting calls.
I have some code in my CFC
I have a CF application that has session variables active. What I need to do
is to create a link to a web file on another server and pass a customized
cookie to it (i.e. cookie.shortname).
However, when I try to do this, the server only picks up the standard cookies
(CFID and CFTOKEN
I have a CF application that has session variables active.
What I need to do is to create a link to a web file on
another server and pass a customized cookie to it (i.e.
cookie.shortname).
However, when I try to do this, the server only picks up the
standard cookies (CFID and CFTOKEN
On Wednesday 11 October 2006 16:05, Kaneshige, Mark M [NTK] wrote:
I have a CF application that has session variables active. What I need to
do is to create a link to a web file on another server and pass a
customized cookie to it (i.e. cookie.shortname).
Cookies *shouldn't* pass across
hi, i have been trying to use session variables in my app. I have enabled the
session variables in the cf admin, and in the application.cfc.
However when i try to run my app it says session is invalid. The session doesnt
even start. I get this error everytime unless i turn off the j2ee session
Clear your browser's cookies and restart the browser (with J2EE
sessions turned on at the server).
Also, is the CF server patched to current levels?
On 9/26/06, Richard White [EMAIL PROTECTED] wrote:
hi, i have been trying to use session variables in my app. I have enabled the
session
thanks james, i cleared my cookies, enabled j2ee session variables in the cf
admin, restarted the browser and it is now working fine.
thanks again :) i have been on that problem for ages. out of interest why would
it have stored a cookie that makes it say that the session is invalid. i never
I am having trouble with the session variables. I know there must be a simple
solution but this is the first time i have used them and not sure what i am
doing wrong.
I am trying to assign a structure to the session variable in one page and then
use that session structure in the forms action
);
/cfscript
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
I am having trouble with the session variables. I know there must be a simple
solution but this is the first time i have used them and not sure what i am
doing wrong.
I am trying to assign a structure to the session variable
, very goodpoint, thank you, i will change that.
yes i have enabled the session variables in the cf admin and the
application.cfc but still not recognising even if i try the following in the
action page:
cfoutput#session.student.name#/cfoutput
it still says session is undefined
thanks
in the session?
cfscript
session.student = structNew();
session.student.name = Fred;
/cfscript
lol, very goodpoint, thank you, i will change that.
yes i have enabled the session variables in the cf admin and the
application.cfc but still not recognising even if i try the following
what do you see if you do a cfdump var=#session# ?
if i do this in the action page it says variable session is undefined.
i have actually changed it as you said in the main page and created the
structure straight in the session variable. I am the session.student.name fine
in the main page but
what do you see if you do a cfdump var=#session# ?
if i do this in the action page it says variable session is undefined.
i have actually changed it as you said in the main page and created the
structure straight in the session variable. I am the session.student.name fine
in the main page but
Are session variables enabled from the CF administrator?
Teddy
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
1) is session management enabled in a cfapplication tag?
2) that's some ugly naming conventions right there. too many
variables with the same name.
3) why not just create
sounds like sessions aren't enabled.
the 'action' page that errors out...it's within the same directory (or
subdirectory) of the Application.cfc that's enabling the session
management?
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
what do you see if you do a cfdump var=#session# ?
if i
Are session variables enabled from the CF administrator?
Teddy
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
thanks, yes they are enabled in the cf admin and in the cfapplication tag in
the application.cfc
~|
Introducing
://www.shayna.com
Training in Cascading Style Sheets and Accessibility
-Original Message-
From: Richard White [mailto:[EMAIL PROTECTED]
Sent: Monday, September 25, 2006 3:46 PM
To: CF-Talk
Subject: Re: Session variables problem
what do you see if you do a cfdump var=#session# ?
if i do
How are you calling the second page from the main page? cflocation?
Teddy
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
what do you see if you do a cfdump var=#session# ?
if i do this in the action page it says variable session is undefined.
i have actually changed it as you said in
sounds like sessions aren't enabled.
the 'action' page that errors out...it's within the same directory (or
subdirectory) of the Application.cfc that's enabling the session
management?
well in the root folder there is a default folder called _mmServerScripts, this
is where the application.cfc
sounds like sessions aren't enabled.
the 'action' page that errors out...it's within the same directory (or
subdirectory) of the Application.cfc that's enabling the session
management?
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
oh i see, i have just put the cfapplication tag at the top
This sounds like the culprit. In order to use a certain session with a
certain application name, the application.cfm or application.cfc needs to be
ina parent folder or in the same folder. Example
Assume foo.cfm is calling a session variable.
\application.cfc
\folder1\foo.cfm
This would work.
sounds like sessions aren't enabled.
the 'action' page that errors out...it's within the same directory
(or
subdirectory) of the Application.cfc that's enabling the session
management?
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
oh i see, i have just put the cfapplication
cfapplication tag is typically stored in the application.cfm file. Though
if you are using CF MX, application.cfc is recommended more as it provides
more features, organization and better event based code use.
Teddy
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
sounds like sessions
In an application.cfm or application.cfc file so that it is automatically
included at the top of every page in the same directory and its sub-directories.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-
| 1 | |
- Binary Soduko
|
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
sounds like sessions aren't enabled.
the 'action' page that errors out...it's within the same directory (or
subdirectory) of the Application.cfc that's enabling the session
management?
On 9/25/06, Richard White [EMAIL PROTECTED] wrote:
Well, you don't really use the cfapplication tag in application.cfc. You
use the this scope before the first cffunction to set the application wide
values.
There is a good quick reference from Ray Camden on application.cfc that can
help you choose to stay with application.cfm or use the
(honestly, i'm new to Application.cfc, so i'm not sure if the including is a
generally accepted good practice...might be better to just move the
Application.cfc up one level so both directories can access it)
Actually with Application.cfc, extending the CFC is usually a better way, then
trying
i see thanks for all your help :)
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
thanks for everyones help, its made it very understandable!
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a
On 9/25/06, Ian Skinner [EMAIL PROTECTED] wrote:
(honestly, i'm new to Application.cfc, so i'm not sure if the including is a
generally accepted good practice...might be better to just move the
Application.cfc up one level so both directories can access it)
Actually with Application.cfc,
i have taken the application.cfc out of the default folder and put it into the
parent directory but now all of my pages are coming up blank. unless it is in
the _mmServerScripts folder nothing works.
is there a reason for this
success with this conversion process with the exception that 'some'
of the reports, after having ran and one has returned back to the application
via the back button, all the session variables are gone. This only happens
when running some of the reports.
My question is why does this happen
the application/session variables are set, ex:
http://www.testsite.com/index.cfm
The view basket cfm page is in the content folder
(C:\inetpub\wwwroot\web\content) under the webroot. The template that gets
called when the user hits a
href=https://www.secureweb.co.uk/testsite/order.cfm?CFID
:\inetpub\wwwroot\web\content folder. There
is an application.cfm file in this folder and a cfapplication tag. When the
site is opened in a browser the application/session variables are set, ex:
http://www.testsite.com/index.cfm
The view basket cfm page is in the content folder
(C:\inetpub
Is there a way to display the image without have to copy the image
directory to the secure folder?
I you can get an https:// connection to the /content/images/ folder then you
can do this without copying I would think. Use full urls in your image calls
instead of relative. Set the value of
Hello Will, I am storing query objects in request and session variables. I
can't send this info over the url query. The https link links to a different
domain because my site is hosted by a company that provides the access to
shared secure server.
I understand the point made by someone earlier
Josh, its not just the request scope variables that are undefined, I tried
dumping the application and session scope variables but got the same undefined
error message.
-cfcoder
~|
Message:
No, you pass the SESSION.URLTOKEN in the URL, not the data. As long as
you are staying on the same machine, the session will then persist
across domains.
On 6/4/06, cf coder [EMAIL PROTECTED] wrote:
Hello Will, I am storing query objects in request and session variables. I
can't send this info
I tried that. I passed #session.URLToken# in the url query string but I still
got an error when I tried to dump the session scope variable, cfdump
var=#session#
Any ideas?
PS: The main site domain and the secure site doamin names are not the same
although the codebase is the same.
Did you pass the token in every URL on the secure site?
On 6/4/06, cf coder [EMAIL PROTECTED] wrote:
I tried that. I passed #session.URLToken# in the url query string but I still
got an error when I tried to dump the session scope variable, cfdump
var=#session#
Any ideas?
PS: The main
On viewbasket.cfm (wwwroot\order\viewbasket.cfm) I added the following code:
tdform
action=https://securesite/proceedToSecuresite.cfm?#session.URLToken#;
method=postinput type=Image src=proceed.gif border=0/form/td
I didn't include it in every single page. I thought I'll first test if this
If the session isn't available on that form post URL, using the same
application name, something strange is going on. It's definitely the
same physical server?
On 6/4/06, cf coder [EMAIL PROTECTED] wrote:
On viewbasket.cfm (wwwroot\order\viewbasket.cfm) I added the following code:
tdform
Correct me if I am wrong but I thought the session variables are applied to
the application
Which is mapped to the url of http://www.mysite.com
Since https is a different protocol, I did not think you could in theory
share those variables.
What I did was shared the DSN and such. Passed a URL
Yes its definately the same physical server. I have no clue as to why the
session, application, server, form, request scope variables are not available
on the https domain.
~|
Message:
Is there a ColdFusion I can use on the https site to return the server settings
i.e webserver version, application name, etc etc.
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242312
Archives:
thought the session variables are applied to
the application
Which is mapped to the url of http://www.mysite.com
Since https is a different protocol, I did not think you could in theory
share those variables.
What I did was shared the DSN and such. Passed a URL variable to the secured
site
cfdump var=#server#
-Original Message-
From: cf coder [mailto:[EMAIL PROTECTED]
Sent: 04 June 2006 15:24
To: CF-Talk
Subject: Re: Session Variables lost when moving from http to https - Please
help!
Is there a ColdFusion I can use on the https site to return the server
settings i.e
I added a cfdump tag to dump the server and application strucutre and saw the
server dump but got an error for outputting the application dump:
cfdump var=#server#
cfdump var=#application#
cfabort
I'll have to contact the hosting provider to see what's going on. It is not
making sense. I've
ColdFusion wrote:
I thought the session variables are applied to the application
Which is mapped to the url of http://www.mysite.com
Since https is a different protocol, I did not think you could in theory
share those variables.
No thats not correct. The session variables are mapped
cf_coder wrote:
I added a cfdump tag to dump the server and application strucutre and
saw the server dump but got an error for outputting the application
dump
I think if there's no application scope then that means you are running code
without a cfapplication statement. That would mean,
PROTECTED]
Sent: Sunday, June 04, 2006 12:30 PM
To: CF-Talk
Subject: Re: Session Variables lost when moving from http to https - Please
help!
I added a cfdump tag to dump the server and application strucutre and saw
the server dump but got an error for outputting the application dump:
cfdump var
Just carry it over with the
urltoken var to be sure.
Yikes. I wouldn't recommend that for security reasons. You shouldn't need to
make the application name a variable under most circumstances. How often does
something like that change? Best to hardcode it and make it something that
isn't
Hello Everybody,
I need your help solving this problem. Any help will be much appreciated. I am
working on a a shopping cart page that stores the items ordered in a request
scope variable. The usual stuff i.e you add an item to a basket and view your
basket where you check the total price and
To: CF-Talk
Subject: RE: Session Variables lost when moving from http to https -
Please help!
You go into a different session from http to https. Best solution is
store
the information in a temporary table in the database, send the id over the
url and then retrieve from the database on the other
Hmmm...I have an application where I set the session variables in http and
then cflocation over to https and it works fine, as long as the domain is
the same, http://www.yourdomain.com and https://www.yourdomain.com.
I think the problem may lie elsewhere -- make sure your application has
thank you all for your help and advise. I'll take a butchers at it tomorrow as
it is pretty late in the night here in the UK.
Cheers,
cfcoder
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242175
Archives:
You can fudge a fix by sending the key pair over in the url query
string on the link that crosses from non secure to secure. You'll
need to do the same thing on the way back when they cross back over to
normal from secure.
This is what I do and it works well.
Will
How do I set up a session variable and then reccall it?
I.e. I want to store 4 things in session variables. Player, Position, Email
and Username.
How would I write a statement for...
1) Put these values in a session that closes in (let's say, an hour).
2) Recall the session variable (I assume
be at the top of every page that will use these session
variables. Most CF developers would put it into an Application.cfm or
Application.cfc file for this reason. ---
cfapplication name=ASessionApp sessionmanagement=yes
sessiontimeout=#createTimeSpan(0,1,0,0)#!--- The createTimeSpan() function
cfset session.Player = Foo
cfoutput#session.Player#/cfoutput
The timeout is controlled either by the CF Administrator or the
Application.cfm / .cfc file.
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241387
of #session.username#. You can
email at a href=mailto:#session.email#;#session.email#/a
IF you want to see what's in the session variables at any moment, you can do
a dump like this:
cfdump var=#session# / and you'll see what variables are set at that
moment, and what their valuels are.
There is one other
Thanks. :) This helps.
I'm using CF7. What happens if I don't lock a session variable?
Original Message:
-
From: Mike Kear [EMAIL PROTECTED]
Date: Thu, 25 May 2006 10:04:35 +1000
To: cf-talk@houseoffusion.com
Subject: Re: Session Variables
To set your variables, you'd do
201 - 300 of 1178 matches
Mail list logo