Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

problem getting session vars to stay defined

Community Beginner ,
Sep 23, 2008 Sep 23, 2008
I am frustrated please help. I have used earlier versions of CF but cf 8 is very new to me. I want to set session variables with in the application.cfc, I thought I had it correct for session management to be initiated, as session variables can be defined. However using them with SSL... well - when a user accesses a page that is under the secure socket layer the variables are undefined. I dont understand what is occuring. This is what I have in my application.cfc file to start session management:

<cfcomponent output="false" hint="Handles application level events.">





<!--- Set up the application. --->
<cfset THIS.Name = "AppCFC" />
<cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 60, 0 ) />
<cfset THIS.SessionManagement = true />
<cfset THIS.SetClientCookies = false />

<CFSET request.dsn = "wlaw" />
</cfcomponent>

ALL HELP IS APPRECIATED

Thank you in advance!
Mike Dooly
TOPICS
Getting started
349
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Sep 25, 2008 Sep 25, 2008
problem fixed!

Thank you for your input, I discovered this morning that it was in my
application.cfc file that I had made the error... too weird cause CF never complained, it just did not provide me with session scope...

I am once again smiling, dont ask me why but it feels good.........



mdooly
Translate
Participant ,
Sep 24, 2008 Sep 24, 2008
Hi,

Are you using multiple servers that are load balanced? In this case the load balancer needs to be configured so it keeps visitors on the same server.

I have not worked with CF 8, but CF 7 has no problem to maintain sessions going from http to https pages.

cheers,
fober
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 25, 2008 Sep 25, 2008
LATEST
problem fixed!

Thank you for your input, I discovered this morning that it was in my
application.cfc file that I had made the error... too weird cause CF never complained, it just did not provide me with session scope...

I am once again smiling, dont ask me why but it feels good.........



mdooly
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources