2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
AJAX World - Cooking CRUD with Flex and BlazeDS
In today's cooking class you'll add to your cookbo
BLOG-N-PLAY.COM
Mystery meat for Muslims
Give me a break from superstiti on.
CFDJ TOP LINKS YOU MUST CLICK ON !


New Possibilities for Session/Client Variable Handling in CFMX
Tucked away among the press and praise about ColdFusion MX are some new options that could benefit every CF developer. If you've seen them mentioned, they may not have seemed important at first glance, but I hope you'll give them consideration.
Reader Feedback : Page 1 of 1

I guess the only alternative left with us would be to force users to enable cookies in IE as MS is not going to address this issue when it has many on its plate. As far as MM is concerned, lets wait for the next release, something should come up.

I'd like to add a couple more observations about using J2EE sessions.

First, when you enable J2EE sessions, CFMX no longer creates the variables session.cfid and session.cftoken. If you're using those to attempt to persist sessions when (or in case) cookies aren't supported, those values are no longer available once you enable J2EE sessions.

You might think to try to use the available session.URLToken variable instead (or cookie.jsessionid, which does exist on the server while the page is being executed). Unfortunately, niether of these will work.

CFMX can only receive a jsessionid on a URL if it's appended after the filename and extension as ;jsessionid=nn, a format that was discussed in the article. This is the reason for the URLSessionFormat function, which was also discussed in the article.

But the caveats above explain why that's problematic in an IIS environment.

And it turns out that the problem above is even larger than I first learned.

If you enable J2EE sessions and then use CFLOCATION, and a browser executes the page but doesn't support cookies or doesn't present any to the page, CFMX will append the ;jsessionid after the filename and extension as discussed in the article. That's great for the built-in CFMX web server.

Unfortunately, if the redirection is to an IIS server (whether yours or another), the request will fail. Even using the ADDToken="no" won't stop it doing this.

Either MM needs to address this, or Microsoft needs to change IIS to allow this sort of URL.

I had mentioned in the article that the new URLSessionFormat would, when when using J2EE sessions, cause the resulting URL it generates to appear in the format templatename.cfm;JSESSIONID=803094969 1025145133137. Note that the JSessionID is appended to the filename separated by a semicolon, rather than to the query string.

I added that "Still, when that's happened, the URL has functioned as expected."

Well, I was doing testing at the time on the built-in CFMX web server. I've since discovered that if you're doing this on an IIS web server, the use of the ;jsessionid after the filename causes a 404 file not found. This is disappointing.

If you use J2EE session variables and are working under an IIS web server, don't use the URLSessionFormat, at least until this problem is resolved by MM. (The problem really ought to be solved by MS.)


FEATURED WHITE PAPERS
YOUR FEEDBACK
Ben Forta's ColdFusion Blog: SQL Injection Attacks, Easy To Prevent, But Apparently Still Ignored
Luis Melo wrote: Our system was not SQL Injection proof and we recently suffered an attack that corrupted the data in some of our database tables. The attack was quite elegant and fortunately did not cause severe damage other than the appending of a SCRIPT sting to a bunch of...
ColdFusion MX and XML: Creating XML Part 2
kuzma wrote: Useless sheet. Bunch of text and 10 lines of code. i do not need novels , i need example all other things I'll find myself
Public-Key Encryption
Thomas Gorgolione wrote: You have to compile the code manually from the zip file (see post #5). I did that already, so if you want you can just download it here: www.tgorg.com/etc/GnuPG.j ar
CFImage Functionality is Just Awesome!
Michael wrote: The noisy ad is beyond annoying.
Food Dial, a Facebook RIA Application Written in Flex
M@ wrote: I really like the UI, although choosing from the outer wheel is a little complicated - you need to be precise. I was going to complain there wasn't much data in there - until I realized that's the point! So I uploaded a recipe and had to add most of the ingredients to...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS

SYS-CON FEATURED WHITEPAPERS

BREAKING NEWS FROM THE WIRES
Handy Networks, LLC Announces the Introduction of Adobe(R) ColdFusion 8 Premium Hosting Plans and Premium Reseller Hosting Plans
Handy Networks, LLC announces the addition of ColdFusion 8 to their hosting solutions.
Clear Data Builder 3.0 is Free Now
The popular code generator Clear Data Builder will become available free of charge. Originally, Clea
AJAX World - Cooking CRUD with Flex and BlazeDS
In today's cooking class you'll add to your cookbook a delicious recipe. It's quick and won't cost
Building an IM Bot Using ColdFusion
I recently brought a Google Talk bot that I put online at cfdocs@gmail.com. Google Talk users can ad
Cornerstones of Virtualization: I/O Virtualization Defined
Recently I talked about what I see as the next 'waves of virtualization' taking the industry, I talk
Engelbart's Usability Dilemma: Efficiency vs Ease-of-Use
The mouse was the original idea of Doug Engelbart who was the head of the Augmentation Research Cent
Web 2.0 Is Fundamentally About Empowering People
'Unlocking content to be remixed into new business value' is the driver of Web 2.0 in the enterprise
All-New AJAX Security Bootcamp Next Week at AJAXWorld in New York
Being held for the first time on March 18, 2008 at the historic Roosevelt Hotel in New York City, AJ
Zend Studio for Eclipse
In my many years of programming, almost 20 years now, I have used countless integrated development e
Building SOA with Tuscany SCA
Many articles have already been written about service-oriented architecture (SOA) and Service Compon
CFImage Part 3
ColdFusion 8 introduces the CFImage tag and dozens of image manipulation functions. We have already
Every Beginner Must Grow Up
Do you remember January of 2004? Macromedia had just released ColdFusion 6.1 a few months earlier. C
Working with the Apache Derby Database and ColdFusion
Early releases of ColdFusion (under Allaire) focused on the Windows market and it was common to incl
CFImage Part 2
ColdFusion 8 has a load of awesome image manipulation functionality. So much so, in fact, that it wi
Test Driving ColdFusion 8
Of course, since this is ColdFusion I expected nothing less than this, i.e., powerful AJAX functiona
Using the Adobe Flex Toolkit for Salesforce.com
In April 2007 Adobe and Salesforce.com announced the availability of the Flex toolkit for Apex, Sale
An Introduction To Adobe Flex For ColdFusion Developers
There's been a lot of talk in the ColdFusion community lately about the newly released Flex 2. If yo
Flex and ColdFusion Hybrid Application with ServiceFactory
Whether it's in factories or workshops, in mines or forests, in offices or homes, or even in our sac
ColdFusion Frameworks: ColdBox 2.0.3 Released
This release is the first one to include contributed content from Rob Gonda, Tom de Manincor, Brian
ColdFusion Feature — Coding with XML
As a ColdFusion developer, hopefully by now you have heard at least a little about XML (eXtensible M
Your First Adobe Flex Application with a ColdFusion Backend
Flex is a complete set of tools to develop rich Internet cross-platform applications based on the Fl
ADS BY GOOGLE