Link to home
Create AccountLog in
Avatar of Michael Robinson
Michael RobinsonFlag for United States of America

asked on

Any problems when switching from CFID/CFToken to J2EE Session Managament

Hi

I've been relying on CFID and CFtoken in my ColdFusion 9 web site.

But now I want to switch to using the J2EE sessionid and J2EE session variables.

Reason is that since moving from ColdFusion 8.0 to 9.0 I have to manually write cookies for CFID and CFtoken  in my application.cfm file.  Otherwise I lose session variables as I move from page1.cfm to page2.cfm.

Are there any potential problems with this?  Other than I have to modify any code I've written that uses CFID and CFToken?

Thx

Michael
ASKER CERTIFIED SOLUTION
Avatar of gdemaria
gdemaria
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Michael Robinson

ASKER

Yes, I have been using this work around, whereby I manually write a cookie for CFID and CFToken, because when I went to a new dedicated server a few years back, we lost session variables as we traversed sub domains.

Writing our own cookies was the only thing that worked at the time and we did not know enough about J2EE to try it.

So I would love to get rid of that work around.  We will test using J2EE and no manual cookies  during for a few minutes around 3 am to see what happens.

It works OK on our development machines, but the final test will be the production server.

As to where we use CFID in any code, we have some tracking utilities and log files which store CFID.  It was useful in for tracking down problems.

But those utilities can be changed quickly.
I'll start a new thread.

My situation seems different.

I have to manually write session cookies because coldfusion 9's  setclientcookies="yes"  

does not work across sub domains.