[cfaussie] Re: Session Variables Stopped Working

2007-10-10 Thread paulineb

I had a similar thing happen yesterday. I think my instance restarted
itself and suddenly session variables weren't working. Our resident
guru said to click Use J2EE session variables in CF Admin which
apprently is not enabled by default when the server/instance starts


On Oct 11, 1:29 pm, Dale Fraser [EMAIL PROTECTED] wrote:
 I have an app that was working yesterday and isn't today.

 I've pinned it down to session variables not working.

 I've checked the admin settings and restarted cf but still nothing.

 Take this example.

 cfif isDefined(session.me)

  cfoutput#session.me#/cfoutput

 cfelse

  Not Defined!

 cfdump var=#COOKIE# /

 /cfif

 cfset session.me = now() /

 I get the Not Defined, when refreshing the page.

 CFID and CFTOKEN does exist in the COOKIE dump and remain consistant across
 page refreshes.

 Anyone have a clue?

 Regards

 Dale Fraser

 http://learncf.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: Session Variables Stopped Working

2007-10-10 Thread Andrew Scott
Dale,

 

Might be a stupid question, but is JSessionId switched on? That can have the
same effect you are talking about.

 



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273

 

 

From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Dale Fraser
Sent: Thursday, 11 October 2007 1:29 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Session Variables Stopped Working

 

I have an app that was working yesterday and isn't today.

 

I've pinned it down to session variables not working.

 

I've checked the admin settings and restarted cf but still nothing.

 

Take this example.

 

cfif isDefined(session.me)

 cfoutput#session.me#/cfoutput

cfelse

 Not Defined!

cfdump var=#COOKIE# /

/cfif

cfset session.me = now() /

 

I get the Not Defined, when refreshing the page.

 

CFID and CFTOKEN does exist in the COOKIE dump and remain consistant across
page refreshes.

 

Anyone have a clue?

 

 

Regards

Dale Fraser

 

http://learncf.com

 



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: Session Variables Stopped Working

2007-10-10 Thread Andrew Scott

When you use J2EE session variables, this forces CF to expire the session
after each page request. As opposed to using the standard CFID  CFToken.

When using the J2EE session variables, you have to rewrite your applications
to be persistant with that ID rather than the normal cookies, or use a REST
methodology to handle the expired sessions.


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273


-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of paulineb
Sent: Thursday, 11 October 2007 1:36 PM
To: cfaussie
Subject: [cfaussie] Re: Session Variables Stopped Working


I had a similar thing happen yesterday. I think my instance restarted
itself and suddenly session variables weren't working. Our resident
guru said to click Use J2EE session variables in CF Admin which
apprently is not enabled by default when the server/instance starts


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: Session Variables Stopped Working

2007-10-10 Thread Andrew Scott

Dale,

The only other thing I can think of is that the application name doesn't
exist for some reason, I can't think of any other reason why you are
experiencing this problem.



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273



-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Dale Fraser
Sent: Thursday, 11 October 2007 1:50 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Session Variables Stopped Working


Those two comments kinda contradict each other.

Use J2EE session variables was off and as far as I know is off by default
and has always been off.

I tried turning it on and it made no difference other than getting a
jsessionid in my cookie dump

Regards
Dale Fraser

http://learncf.com


-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Andrew Scott
Sent: Thursday, 11 October 2007 1:42 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Session Variables Stopped Working


When you use J2EE session variables, this forces CF to expire the session
after each page request. As opposed to using the standard CFID  CFToken.

When using the J2EE session variables, you have to rewrite your applications
to be persistant with that ID rather than the normal cookies, or use a REST
methodology to handle the expired sessions.


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273


-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of paulineb
Sent: Thursday, 11 October 2007 1:36 PM
To: cfaussie
Subject: [cfaussie] Re: Session Variables Stopped Working


I had a similar thing happen yesterday. I think my instance restarted
itself and suddenly session variables weren't working. Our resident
guru said to click Use J2EE session variables in CF Admin which
apprently is not enabled by default when the server/instance starts





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: Session Variables Stopped Working

2007-10-10 Thread Dale Fraser

Ok,

I'm an idiot.

I removed Engine from application the other day, thus every request was
clearing session. I didn't realise however as the application hadn't
restarted thus application.Engine did still exist.

cffunction name=onRequestStart returntype=boolean output=true
cfif not isDefined(application.Engine) or isDefined(url.reload)
cfset structClear(session) /
/cfif

Thanks.

Regards
Dale Fraser

http://learncf.com


-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Dale Fraser
Sent: Thursday, 11 October 2007 1:50 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Session Variables Stopped Working


Those two comments kinda contradict each other.

Use J2EE session variables was off and as far as I know is off by default
and has always been off.

I tried turning it on and it made no difference other than getting a
jsessionid in my cookie dump

Regards
Dale Fraser

http://learncf.com


-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Andrew Scott
Sent: Thursday, 11 October 2007 1:42 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Session Variables Stopped Working


When you use J2EE session variables, this forces CF to expire the session
after each page request. As opposed to using the standard CFID  CFToken.

When using the J2EE session variables, you have to rewrite your applications
to be persistant with that ID rather than the normal cookies, or use a REST
methodology to handle the expired sessions.


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273


-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of paulineb
Sent: Thursday, 11 October 2007 1:36 PM
To: cfaussie
Subject: [cfaussie] Re: Session Variables Stopped Working


I had a similar thing happen yesterday. I think my instance restarted
itself and suddenly session variables weren't working. Our resident
guru said to click Use J2EE session variables in CF Admin which
apprently is not enabled by default when the server/instance starts




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: Session Variables Stopped Working

2007-10-10 Thread paulineb

Andrew,

Do you mean when the browser is closed rather than after each page
request? I have J2EE session vars switched on and they only expire
after the browser is closed.

On Oct 11, 1:42 pm, Andrew Scott [EMAIL PROTECTED] wrote:
 When you use J2EE session variables, this forces CF to expire the session
 after each page request. As opposed to using the standard CFID  CFToken.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: Session Variables Stopped Working

2007-10-10 Thread Andrew Scott

Yes, when the browser is closed. Sorry for the confusion




Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273



-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of paulineb
Sent: Thursday, 11 October 2007 2:06 PM
To: cfaussie
Subject: [cfaussie] Re: Session Variables Stopped Working


Andrew,

Do you mean when the browser is closed rather than after each page
request? I have J2EE session vars switched on and they only expire
after the browser is closed.

On Oct 11, 1:42 pm, Andrew Scott [EMAIL PROTECTED] wrote:
 When you use J2EE session variables, this forces CF to expire the session
 after each page request. As opposed to using the standard CFID  CFToken.





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---