Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / September 2008



Tip: Looking for answers? Try searching our database.

Session Variables not staying set between pages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg Nenninger - 28 Aug 2008 15:01 GMT
I am working on a web site and pages on my local development environment and my
Session Variables not staying set between pages.  I recently installed the
development environment.  Is there anything I may be missing or need to check
to make sure session variables stay set?
Dan Bracuk - 28 Aug 2008 15:11 GMT
Check your application.cfc/cfm file to see if you have enabled session variables.
Greg Nenninger - 28 Aug 2008 15:16 GMT
I have set session variables enables in my application.cfm.  The line that I
have is:

<cfapplication name="pr" clientmanagement="no" sessionmanagement="yes"
setclientcookies="no" setdomaincookies="no"
sessiontimeout=#CreateTimeSpan("0","2","0","0")#>
Greg Nenninger - 28 Aug 2008 15:21 GMT
Even though the cfapplication is in my application.cfm, the session variables are not staying bwtween pages.
Azadi - 28 Aug 2008 16:05 GMT
do you have session vars enabled in CF Administrator? the checkbox is
under Server Settings -> Memory Variables...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
GArlington - 29 Aug 2008 10:16 GMT
On Aug 28, 3:16 pm, "Greg Nenninger" <webforumsu...@macromedia.com>
wrote:
> I have set session variables enables in my application.cfm.  The line that I
> have is:
>
>  <cfapplication name="pr" clientmanagement="no" sessionmanagement="yes"
> setclientcookies="no"
It should be setclientcookies="true", or you will need to add
sessionID to every link and <cflocation .../>
> setdomaincookies="no"
> sessiontimeout=#CreateTimeSpan("0","2","0","0")#>
Ian Skinner - 28 Aug 2008 15:34 GMT
> I am working on a web site and pages on my local development environment and my
> Session Variables not staying set between pages.  I recently installed the
> development environment.  Is there anything I may be missing or need to check
> to make sure session variables stay set?

Do you have cookies disabled in your browser.  It's an often overlooked
fact that if a browser does not accept cookies session state can not be
maintained without taken extra steps to pass the required keys in the
URLs of all requests of an application.
Greg Nenninger - 28 Aug 2008 16:04 GMT
Thanks for the help.  I found the problem to be that the CF server did not have "Use J2EE session variables
" set.
GArlington - 29 Aug 2008 10:18 GMT
On Aug 28, 4:04 pm, "Greg Nenninger" <webforumsu...@macromedia.com>
wrote:
> Thanks for the help.  I found the problem to be that the CF server did not have "Use J2EE session variables
> " set.

It started working after you enabled that?
I find it hard to believe because this is just changing the style of
session vars used: standard CFID and session VS. J2EE session
variables...
BKBK - 02 Sep 2008 06:17 GMT
[i]I found the problem to be that the CF server did not have "Use J2EE session
variables" set. [/i]
That is a different matter. Coldfusion session management and J2EE session
management are the two available options. You might just have chosen to use the
J2EE option.

[i]setclientcookies="no"[/i]

I think that setting tells Coldfusion not to set Coldfusion session cookies on
the browser. Change it to "yes".
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.