| Web
News |
Common computer standards open for discussion
The government's impending changeover to open-source computer
technology is a hot topic of discussion that extends far
beyond the normal circle of technology freaks
Public sector goes digital
The nation again ranks number one in IT competency thanks
to an IT-savvy public sector that has made life more convenient
for the average citizen Google backs character-recognition research
Google is sponsoring an artificial-intelligence research
group's work to develop advanced technologies for character
recognition. The open-source project, called Ocropus,
has several goals, including developing a...
EU
domain racks up 2.5 million fans
More than 2.5 million people and organizations have registered
European Union domain names since .eu was opened to the
public a year ago. According to the European Union, .eu
is now Europe's third most... |
| Recent
WebProNews Articles |
Schmidt
Defends DoubleClick Buy, Net Neutrality
At the Web 2.0 Expo in San Francisco today, Google CEO
Eric Schmidt spoke with Federated Media's John Battelle
to discuss Google's purchase of DoubleClick, Network Neutrality,
and the company's seemingly aggressive...
Yahoo
Checks Out PayPal For Payments
Yahoo and eBay announced the Yahoo PayPal Checkout Program,
which users of Yahoo Search will encounter as little blue
shopping cart icons in the search...
Opposition
To DoubleClick Deal Oddly Timed
The chorus of calls for antitrust review of Google's $3.1
billion purchase of advertising network operator DoubleClick
comes at a very early time in the process. Microsoft,
AT&T, and Time Warner have all voiced...
7
Reasons Google's Paid Link Snitch Plan Sucks
Matt Cutts blogged
that Google would like you, the average search engine
user, to report on sites you feel are displaying links
for cash. This created a firestorm...
Web
2.0 Expo: Transforming The Media
Static online reprints of newspaper and magazine articles
is so ten years ago. Interactivity and networking are
the big factors now, as people want to leave their mark
in comments on the stories of today. Reading...
|
|
05.03.07
Dealing W/
Cookie-less Sessions
By
Raymond Camden
Axel asked a question about Vista Gadgets that I thought I would
discuss here.
Sessions with MS Vista. I'm building a VISTA gadget calling
an external CFM page using flash forms. It looks really cool,
in particular in a flyout window.
Now when I need to log into the app, I realized that the VISTA
Gadget space seem not to have any session handler. Any idea?The
first thing you need to do is uninstall Vista. (No, I jest.)
So with knowing nothing about Vista Gadgets (frankly widgets
and gadgets bore me) I'd have to assume that they are acting
like a cookie-less browser.
ColdFusion sessions require cookies in order to track your browser
and associate it with a session... normally.
Try a Better Way Today.
Try WebEx MeetMeNow
- Click
Here |
|
If your browser doesn't support cookies, you have two ways you
can handle it.
All sessions come with a few default variables.
One of them is URLToken. This is a string of the form cfid=XXX&cftoken=XXX
(or cfid=xxx&cftoken=xxx&jsessionid=xxx). As you can
see, it is in a format appropriate for query strings.
This allows you to append it to the end of a link:
<a href="dharma.cfm?#session.urlformat#">Secret
Dharma File</a>
Another option is urlSessionFormat().
You can wrap your links with this function and ColdFusion will
determine if it needs to add the session information or not.
Here is an example of that:
<a href="#urlSessionFormat('dharma.cfm?')#">Secret
Dharma Files</a>
The important thing to note though is that all links have to
use one of these methods.
That means both "simple" links like I used above as well as
form tags.
It would also include AJAX links if the back end needs session
information in order to return the correct data.
Comments
About the Author:
Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com
Raymond Camden is Vice President of Technology for roundpeg,
Inc. A long time ColdFusion user, Raymond has worked on numerous
ColdFusion books and is the creator of many of the most popular
ColdFusion community web sites. He is an Adobe Community Expert,
user group manager, and the proud father of three little bundles
of joy. |