RE: Sessions and CFMX still

2003-03-07 Thread Bud
On 3/6/03, Joe Eugene penned:
To use sessions without cookies.. take a look at..

URLSessionFormat(request_URL)

http://livedocs.macromedia.com/cfmxdocs/CFML_Reference/functions-pt2113.jsp#
4471249

Thanks Joe. That basically looks exactly like what is spit out by 
urltoken, except it places the jsessionid in the URL twice, one 
before the query string, separated from the target page with a 
semi-colon.

Anyway, so far it looks like it works.

Question. If J2EE sessions are disabled, is JSESSIONID...

NOT defined?
defined but empty?
Still there as normal but not used?

Thanks!
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
http://www.cf-ezcart.com/
954.721.3452
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Sessions and CFMX still

2003-03-07 Thread Tangorre, Michael
what happens if you have a URL like this:

index.cfm?fuseaction=users.currentuserslistType=desc

does it add another ? to the end??? 



-Original Message-
From: Bud [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 7:54 AM
To: CF-Talk
Subject: RE: Sessions and CFMX still


On 3/6/03, Joe Eugene penned:
To use sessions without cookies.. take a look at..

URLSessionFormat(request_URL)

http://livedocs.macromedia.com/cfmxdocs/CFML_Reference/functions-pt2113.jsp#
4471249

Thanks Joe. That basically looks exactly like what is spit out by 
urltoken, except it places the jsessionid in the URL twice, one 
before the query string, separated from the target page with a 
semi-colon.

Anyway, so far it looks like it works.

Question. If J2EE sessions are disabled, is JSESSIONID...

NOT defined?
defined but empty?
Still there as normal but not used?

Thanks!
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
http://www.cf-ezcart.com/
954.721.3452

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Sessions and CFMX still

2003-03-07 Thread Joe Eugene
Bud,

urltoken, except it places the jsessionid in the URL twice
I just noticed this.. This is not supposed to happen.. 

In theory/manuals .. it should be like 
index.cfm?jsessionid=80301958431047056318625cfid=20241cftoken=52485459

It does something like ... 
index.cfm;JSESSIONID=80301958431047056318625?CFID=20241CFTOKEN=52485459jsessionid=80301958431047056318625
and the page does NOT display.. ;

Have done enough CFMX BUG Complaining for the week :)..
You might be better of to just hard code JSessionID in the URL

Question. If J2EE sessions are disabled,

If you  disable J2EE Sessions.. JSessionID will NOT get populated and your CFID and 
CFTOKEN will become your session Tokens.

I would NOT advice to disable J2EE sessions.. there are several advantages of using 
J2EE sessions..
1. Session State ID's get seperated from Client State.
2. Easy to expire session
3. J2EE sessions expire on browser close... and are truly treated as session cookies

Hope this helps.
Joe Eugene






---Original Message---
From: Bud [EMAIL PROTECTED]
Sent: 03/07/03 07:54 AM
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: Sessions and CFMX still

 
 On 3/6/03, Joe Eugene penned:
To use sessions without cookies.. take a look
at..

URLSessionFormat(request_URL)

http://livedocs.macromedia.com/cfmxdocs/CFML_Reference/functions-pt2113.jsp#
4471249

Thanks Joe. That basically looks exactly like what is spit out by 
urltoken, except it places the jsessionid in the URL twice, one 
before the query string, separated from the target page with a 
semi-colon.

Anyway, so far it looks like it works.

Question. If J2EE sessions are disabled, is JSESSIONID...

NOT defined?
defined but empty?
Still there as normal but not used?

Thanks!
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
a target=_blank
href=http://www.twcreations.com/;http://www.twcreations.com//a
a target=_blank
href=http://www.cf-ezcart.com/;http://www.cf-ezcart.com//a
954.721.3452

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Sessions and CFMX still

2003-03-07 Thread Dave Watts
  urltoken, except it places the jsessionid in the URL twice

 I just noticed this.. This is not supposed to happen.. 
 
 In theory/manuals .. it should be like 
 index.cfm?jsessionid=80301958431047056318625cfid=20241cftok
 en=52485459
 
 It does something like ... 
 index.cfm;JSESSIONID=80301958431047056318625?CFID=20241CFTOKE
 N=52485459jsessionid=80301958431047056318625
 and the page does NOT display.. ;

Actually, according to the J2EE specification, the JSESSIONID should be
added after the file name with a semicolon. I'm not really sure why that is,
but there it is, on page 50 of the Servlet 2.3 specification:

http://www.jcp.org/aboutJava/communityprocess/final/jsr053/

That link was pointed out to me by Aaron Johnson.

Now, there is a known bug in CFLOCATION; if ADDTOKEN=NO, it still appends
the JSESSIONID to the file name with a semicolon. Whether or not the page
will run depends on how your web server is configured; if you're using IIS,
I believe you'd need to use an ISAPI filter instead of an ISAPI extension to
connect to CFMX. You can choose to use either a filter or an extension when
you run wsconfig.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: Sessions and CFMX still

2003-03-06 Thread Joe Eugene
Bud,
For some reason... mail server chewed my last reply! about 7hrs ago.

It all depends on what you have enabled in you application.
You can enable both J2EE sessions(JSessionID) and client(CFID/CFTOKEN) state
management in CFMX.
They are different things in CFMX..populates different variables.

If you are using J2EE Sessions.. you dont need to track CFID or CFTOKEN...
they are not part of the session anymore.

To use sessions without cookies.. take a look at..

URLSessionFormat(request_URL)

http://livedocs.macromedia.com/cfmxdocs/CFML_Reference/functions-pt2113.jsp#
4471249

To kill a session.. just repeat cfapplication with
sessionTimeOut=CreateTimeSpan(0,0,0,0)

Hope this helps
Joe Eugene

Joe Eugene



 -Original Message-
 From: Bud [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 06, 2003 10:34 PM
 To: CF-Talk
 Subject: Sessions and CFMX still


 Not sure if the list is just dead tonight or broken. But I'm dying
 for an answer here.

 2 questions.

 1) How do a keep a session alive with cookies disabled? Steps please.
 I've read Use the jsessionid, etc., but I must be doing it wrong.

 2) How do I keep that same session alive going from one domain to
 another? The page will be under the same cfapplication tag.

 Passing cfid and cftoken has always worked. Now I'm passing urltoken,
 which passes cfid, cftoken and jsessionid. jsessionid changes on
 every click though. Even if I manually set it with...

 jsessionid = url.jsession.id

 I've just sat here for 8 hours trying to figure out how to do
 something that it took me 30 seconds to learn in CF 4.01. And that
 was when I had a whopping day or two of experience under my belt. Now
 I have 4 years and I can't maintain session state across domains or
 when cookies are disabled. Extremely discouraging. :-(
 --

 Bud Schneehagen - Tropical Web Creations

 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 ColdFusion Solutions / eCommerce Development
 [EMAIL PROTECTED]
 http://www.twcreations.com/
 http://www.cf-ezcart.com/
 954.721.3452
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4