problem is session vars to be defined
I am frustrated please help. I have used earlier versions of CF but CF 8 are very new to me. I want to put with session variables in the application.cfc, I thought I had it correct for the management of session be initiated, as session variables can be defined. However their use with SSL... well - when a user accesses a page that is under the secure sockets layer variables are not defined. I don't understand what is happening. That's what I have in my application.cfc file to start the session management:< cfproperty output = "false" hint = "Management application level events." >
<!-configure the application. ->
< cfset CE. Name = "AppCFC" / >
< cfset CE. ApplicationTimeout = CreateTimeSpan (0, 0, 0, 60) / >
< cfset CE. SessionManagement = true / >
< cfset CE. SetClientCookies = false / >
< CFSET request.dsn = "wlaw" / >
< / cfproperty >
ANY HELP IS APPRECIATED
Thank you in advance!
Dooly's Mike
fixed a problem!
Thank you for your comments, I discovered this morning that it was in my
file application. CFCS that I had made the mistake... cause too weird CF never complained, she just don't provides me scope session...
I am once again a smile, don't ask me why, but it of good...
mdooly
Tags: ColdFusion
Similar Questions
-
problem opening session: the user profile service failed to connect
original title: problem opening session
I have 2 accounts.recently, user when I try login I get this message that says - user profile service is not logon.the another account is still ok.what happened past and how to fix
This isn't the FULL error message. Next time please make sure you post the message in its entirety and verbatim.
Is that what your error message: unable to load the user profile and the user profile service has not the opening of session
If so, please read on...
You have another admin account , you can connect?
If so, please do and do a system restore, if no help, run the Microsoft Support tutorial below.If you don't have another admin account, go into safe mode.
Here's how to get safe mode:
Shut down your computer > turn it back on and immediately and repeatedly press F8 key until you see a black and white screen. The top/down arrow and selectSafe Mode with network.In the window of logon in safe mode...
1 can connect to your account administrator in safe mode?
If so, do a system restore first, if not help, run it
Microsoft support tutorial below.2. If you cannot connect to your own account, you see another
next to your admin account in the logon screen?
If you do, that one is the built-in Administrator account. By default, there is no password. Connect to it and new to do a system restore first, if no help, run
the Microsoft tutorial support listed below.If you are able to log on in safe mode, do a system restore. Choose a
Date of when you were able to log in NORMAL MODE as your restore point.
How to restore the system:
http://www.Vistax64.com/tutorials/76905-System-Restore-how.htmlTutorial from Microsoft support :
http://support.Microsoft.com/kb/947215
There are several methods, go through one by one.
Method 3 has a "fix it for me" application -
Variable not defined session immediately after CFSET session.var = "data".
Hello, everyone.
Got a real head scratcher (of least for me that is.)
Just to experiment a little, it is not (yet) project, but something I would like to as reusable code for future projects.
I try to write code that will clear session variables when the browser is closed, - THEN - separate session variables to the client by changing and expiring cookies cfid and cftoken.
In my Application.cfc, I have the following:
onSessionStart: <cfif NOT StructKeyExists(session,"app")><cfinvoke component="components" method="setDirs" returnvariable="session.app"></cfif> <cfset oRequest = getPageContext().getRequest()> <cfset session.cookies = oRequest.getHTTPRequest().getCookies()> <cfcookie name="cfid" value="#session.cfid#"> <cfcookie name="cftoken" value="#session.cftoken#"> onSessionEnd: <cfloop index="local.cookiename" list="cfid,cftoken,cfmagic"><cfcookie name="#local.cookiename#" value="" expires="now"></cfloop>
On the page that appears, I have:
<cfset session.cookies = getPageContext().getRequest().getHTTPRequest().getCookies()> <cfoutput> <cfloop index="idx" array="#session.cookies#">#idx.getName()# = #idx.getValue()# - Expires: #idx.getMaxAge()#</cfloop> </cfoutput>
The above is where appears the error message "Cookies" not defined in the Session Didn't I just put session.cookies, twice?
Thank you
^_^
You can't.
To change a browser cookies, you must communicate with the browser. This is done when the CF server sends the HTTP response for a request for this browser.
onSessionEnd() - by its nature - only works when it is not communicating with the browser, and has not been any communication from the browser at least the period [session timeout]. So you can monkey with the scope of the cookie all you like in there, but the changes are never sent to the browser, because the browser has long since "left the building" as it was.
HTTP is connectionless, and the browser is not communicating with the CF Server in any case (him speak only of browser on the web server), there is no way for the CF server know that the client has closed his browser. Everything that takes place on the client machine, and CF is sitting on the server see Even the web server does not know what is happening on the client user interface.
What you can do is to put the cookies and session to have a very short time, so that expire them quickly once there is no activity to refresh.
--
Adam
-
Problem starting session after 4.5 upgrade
Small installation with ESX4 and works very well with view 4.0 Enterprise, Manager of connections running on a dedicated 32-bit Win2003SP2 VM. The Connection Manager 4.5 upgrade succeeded without error, so I assumed that all workers. Updated two or three Agents and Clients: (the upgrade of the Client seems to need 2 attempts).
Now the Clent 4.5 connects to view very well with an AD account and shows the assigned office pools. But when I try to start a session with an account, I get a message "your user account is disabled. It is not.
In the Connection Manager application event logs, I get errors:
Event type: error
Event source: VMware View
Event category: VMware View
Event ID: 105
Date: 21/09/2010
Time: 15:37:10
User: NT AUTHORITY\SYSTEM
Computer: VIEWMANAGER
Description:
Program C:\Program VMware View\Server\bin\wsnm.exe, wire 0x97C met an exception 0xC0000005 (no charge DbgHelp.dll) machine code
a whole series of them:
Event type: WARNING
Event source: VMware View
Event category: VMware View
Event ID: 104
Date: 21/09/2010
Time: 15:37:11
User: NT AUTHORITY\SYSTEM
Computer: VIEWMANAGER
Description:
backtrace [00] framework 0x0353fc60 IP 0x01e38f96 0x103fcc8 0xffffffff924f9e8a 0xc59d64 0x353fd18 params?
then:
Event type: Information
Event source: VMware View
Event category: VMware View
Event ID: 102
Date: 21/09/2010
Time: 15:37:24
User: NT AUTHORITY\SYSTEM
Computer: VIEWMANAGER
Description:
Worker: "ws_admin' original SEH EXCEPTION 0xc0000005
Event type: WARNING
Event source: VMware View
Event category: VMware View
Event ID: 104
Date: 21/09/2010
Time: 15:37:24
User: NT AUTHORITY\SYSTEM
Computer: VIEWMANAGER
Description:
(SESSION: 8AF5DBE135AB7B06D9F9016B0DD7D3F4;) FAEE69698A80729EE77588CBA85287BB) could not determine whether the user account (dddwale) is valid for the opening of session of AD, assuming that disabled.
I went back the server and I tried the upgrade with the same result. The server is patched to date.
I've had a look around and no one else reported a similar problem. Has anyone else seen elsewhere? Or anyone have any idea what could cause? Or fixing it (outside of create a new server from scratch).
TIA
DDDwale
Novell DSfW try set the attribute LDAP logonHours for the domain user. It must be set to a value. You probably want to ensure that all the hours of the week are valid. It is by default in Active Directory.
Select this option.
-
problem engine session in jsxbin
Hi all
I have created the script UI - window type "palette", while running the script (.jsx format) in the InDesign Script, my palette visible Panel by me. If I convert the script .jsx format .jsxbin, place the binary file in the InDesign scripts Panel folder, then run the script (format .jsxbin) the palette visible and immediately hidden.
I could not able to identify where the leaks memory has occurred?
The test scenario code:
indesign #target
#targetengine testsession
var myWindow is new window ('pallet', 'Form');.
var myInputGroup = myWindow.add ('group');
myInputGroup.add ('statictext', undefined, ' name: ');
var myText = myInputGroup.add ('edittext', undefined, 'Hello World!');
myText.characters = 20;
myText.active = true;
var myButtonGroup = myWindow.add ('group');
myButtonGroup.alignment = 'right ';
myWindow.show ();
Thanks in advance.
Imagine
Hey imagine,
Well. It is a bit tricky with the paddles.
What you have to do is to put the jsxbin inside the new jsx and cover
in app.doScript and add the session to the beginning.
It will look like this:
#targetengine "testsession" app.doScript("@JSXBIN@[email protected]@MyBbyBnANMXby.........");
Hope that helps.
--
Marijan (tomaxxi)
-
Problem changing a var .source
Hello expert AS3! How are you?
Well, here I am with another problem to solve.
I have a charger added to my step and then I'm trying to change its source with .source (as a string). Here is the code:
var folioLoader:Loader = new Loader();
folioLoader.load (new URLRequest("portfolio/datto.png"));
folioLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, folioLoaded);
function folioLoaded(e:Event):void {}
stage.addChildAt (folioLoader, 0);
folioLoader.source="portfolio/perfecta.png '; //here is where I get the 1119: access of possibly undefined property of source... error
Subs.title.Text = "' DATTO: FILE"; "
}If I comment on this sixth line of code, the ' portfolio/datto.png' image shows, and output will return no error.
So, what I am doing wrong? How am I supposed to change the image charge inside my folioLoader?
I hope it's well explained and thanks for your help!
Here is the code which, hopefully, will help you get started. I'll be honest with you - I don't use a timeline for coding, code is a quick and dirty to demonstrate one way (not the one who should be) to accomplish your task. Basically, it's just a plan of the logic that performs the slide show view. There is plenty of room for improvement and refactoring. You will need to build on that.
import fl.transitions.Tween; import fl.transitions.easing.*; import flash.display.Loader; // array of objects that hold slide related metadata, etc. var slides:Array = []; var totalImages:int = 0; // number of loaded images var numLoaded:int = 0; // current slide index var currentSlide:int = 0; /* XML-------- --------------*/ var XMLLoader:URLLoader = new URLLoader(); // listeners MUST be added BEFORE operation starts! XMLLoader.addEventListener(Event.COMPLETE, processXML); XMLLoader.load(new URLRequest("portfolio/portfolio.xml")); function processXML(e:Event):void { var XMLData:XML = new XML(XMLLoader.data); XMLLoader.removeEventListener(Event.COMPLETE, processXML); XMLLoader = null; totalImages = XMLData.title.length(); var currentSlide:Object; for (var i:int = 0; i < totalImages; i++) { currentSlide = { url: XMLData.images[i], title: XMLData.title[i], description: XMLData.description[i], loader: new Loader() }; slides.push(currentSlide); loadFolio(currentSlide); } } /* PORTFOLIO-- --------------*/ function loadFolio(slide:Object):void { var loader:Loader = slide.loader; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoad); loader.load(new URLRequest("portfolio/" + slide.url)); } function onImageLoad(e:Event):void { e.target.removeEventListener(Event.COMPLETE, onImageLoad); numLoaded++; // if all of them are loaded - show first slide if (numLoaded == totalImages) showSlide(0); } function showSlide(slideIndex:int):void { currentSlide = slideIndex; var slide:Object = slides[slideIndex]; addChild(slide.loader); subs.title.text = slide.title; subs.sub.text = slide.description; slides[slideIndex].loader.x = 50; for (var i:int = 0; i < totalImages; i++) { if (i != slideIndex && contains(slides[i].loader)) removeChild(slides[i].loader); } } /* SUBMENU---- --------------*/ subs.colapse_btn.addEventListener(MouseEvent.CLICK, showSubs); function showSubs(e:MouseEvent):void { if (subs.expand_btn.v.rotation <= 45) { var minus:Tween = new Tween(subs.expand_btn.v, "rotation", Strong.easeOut, subs.expand_btn.v.rotation, 90, 1, true); var up:Tween = new Tween(subs, "y", Strong.easeOut, subs.y, 255, .5, true); } else { var plus:Tween = new Tween(subs.expand_btn.v, "rotation", Strong.easeOut, subs.expand_btn.v.rotation, 0, 1, true); var down:Tween = new Tween(subs, "y", Strong.easeOut, subs.y, 295, .5, true); } } /* ARROWS----- --------------*/ right_btn.buttonMode = true; left_btn.buttonMode = true; right_btn.addEventListener(MouseEvent.CLICK, nextImg); left_btn.addEventListener(MouseEvent.CLICK, nextImg); function nextImg(e:MouseEvent):void { if (e.currentTarget == right_btn) currentSlide = currentSlide < slides.length - 1 ? currentSlide + 1 : currentSlide; else currentSlide = currentSlide > 0 ? currentSlide - 1 : 0; showSlide(currentSlide); }
-
Hi all
I'm trying to define a few variables of session.user. * when the user connects and it works a bit. When a user first connects it works fine, but if the session expires and the user connects again, then it does not work. The user should logout manulay in order to make it work again. I use j2ee session management.
I also tried to make the user session, located in the onSessionStart, but that did not work. Here is my code:
< cffunction name = "OnRequestStart" >
< name cfargument = "request" required = "true" / >
< IsDefined ("URL.logout") cfif >
< cflogout >
< cflocation url = "" / index.cfm "addtoken ="no">"
< / cfif >
< cflogin >
< cfif NOT IsDefined ("cflogin") >
< cfinclude template = "loginform.cfm" >
< cfabort >
< cfelse >
< cfif cflogin.name IS "" OR cflogin.password "" > "".
< cfoutput >
< h2 > you must enter text in the fields of the user name and the password. < / h2 >
< / cfoutput >
< cfinclude template = "loginform.cfm" >
< cfabort >
< cfelse >
< name cfquery = "loginQuery" dataSource = "#Application.DNS #" >
SELECT the ID user, UserLevel, news, calendar, site, marketing, account, users
USERS
WHERE
UserID = ' #cflogin.name # '.
AND password = ' #cflogin.password # '.
< / cfquery >
< cfif QNE loginQuery.UserLevel "" > "".
< cfloginuser name = "" #cflogin.name # "password =" #cflogin.password # "roles =" #loginQuery.UserLevel # ">"
< cfscript >
session. User.News = loginQuery.news;
session. User.Calendar = loginQuery.calendar;
session. User.Account = loginQuery.account;
session. User.site = loginQuery.site;
session. User.marketing = loginQuery.marketing;
session. User.Users = loginQuery.users;
< / cfscript >
< cfelse >
< cfoutput >
< H2 > your login information is invalid. < br >
Please try again < / H2 >
< / cfoutput >
< cfinclude template = "loginform.cfm" >
< cfabort >
< / cfif >
< / cfif >
< / cfif >
< / cflogin >
< / cffunction >And that's when they try to connect, or if the session expires while they visit another page?
-
Network problem, cancelled session
[Macromedia] [SequeLink JDBC Driver] Network problem, session aborted due to an error internal in the remote procedure call, the connection closed.
ColdFusion seem to throw this error sometimes... it's never happen to anyone? I'm doing some research on Google, but nobody can't seem to find a reasonable solution. Cannot switch to use the Oracle Thin driver because our data base have a certain stored procedure that returns a REF CURSOR.
Database: Oracle 10g R2.,.
Server: Netscape Enterprise running ColdFusion MX 7 Standard Edition.
Thank youFixed.
Cause: damaged following when upgrading from the JVM.
http://www.sargeway.com/blog/index.cfm/2006/1/18/CF-Admin-corrupt-classpath
-
Affect the value of the cookie of session var?
Hi all
How is - a assign a cookie value to a variable of javasript session?
Thank you
RichardGHi Michael,
I had trouble settting/get cookies on my pc for development in the CF and was trying to get arouind using JS.
The problem turned out to be be ZoneAlarm blocks cookies by CF. I couldn't even set Client variables because they are dependent on cookie! It took me forever to figure this. Sigh. A waste of time this as frustrating.
Thank you very much for your kind reply, I really appreciate it,
Richard -
Session Vars on development server
I think it's a server issue and hope someone can clear this for me:
If I run the following code on our production server I get 4 session variables: 'sessionid', "urltoken", 'sesVarOne' & 'sesVarTwo '.
Runnig this code on my server (my laptop) I only get the variable "sesVarTwo" to develop.
go.cfm :
< cfset session.sesVarOne = "yes" >
< cfdump var = "#session #" >
< cflocation url = "goto.cfm" >
goto.cfm :
< cfset session.sesVarTwo = "yes" >
< cfdump var = "#session #" >Pope on acid wrote:
> I think it's a server issue and hope someone can clear this for me:
>Session variable must be authorized in the administrator. They are by
by default, but make sure that they have not been disabled.Then you must include this line on each model that will have access to a
session scope.OR if you use an application.cfc
This.Name = "appNameString"
this.sessionManagement = "yes". -
Problem opening session WAP54G
OK - so I think it's a very simple question that I am assuming will be a duh! response.
I purchased a WAP54G - got hooked - took the CD very well Setup Wizard. Problem is that I can't access the device through the web interface. I do this from a laptop (wired) with wireless off. I put (static) IP 192.168.1.100 laptop computer and navigate to 192.168.1.245. When I am asked to authenticate - what I'm doing but none of the logons are successful. The credentials are not accepted.
I tried three different computers (XP, Vista, Vista64) and two browsers (FF and IE) but always get the same answer.
I ran several times - Installation Wizard have changed the SSID, passwords etc and in each case, check the changes stand. From there, I know the computer speak AP - but I can't connect from a web browser.
I am running Norton on the computers but have tried to disable and always get the same answer
any help would be appreciated
The default connection for the WAP54G is;
User:
Password: admin
IE, the user name is empty.
If this does not work as you have set the password at one point. You cannot set a user on the WAP54G, that is to say, the User: is always empty.
Concerning
Fred
-
BBM problem: Send session, channel
Hi all
I tried to send session and channel to my friends in the BBM list using the code of the tutorial (this site: http://docs.blackberry.com/en/developers/deliverables/25800/BlackBerry_Messenger_SDK-Development_Gui...), but the right dialog box show me only the empty list both.
Do my friends need to install this app before I send them session or channel?
Thank you
Concerning
I don't think you send a session or the channel. I think that the process is that you open a Session or channel and invite your friends to participate in this Session or the channel. And yes I think that participate through this Session or channel, your friends will have to use your application.
You have this process work using simulators provided with the SDK?
Take a look at the code in the SDK of BBM demo application. He seems to try to demonstrate everything. At the expense of some specify in my opinion, but it's a good start.
-
Problem with session variable purging
Hello
I've set up in my solution OBIEE RLS filters, in accordance with article http://www.rittmanmead.com/2012/03/OBIEE-11g-security-week-row-level-security/
All that " works very well, but I have a " "" small "problem (explained in short 'story'):' 1. Suppose that user Walter White has affected Reg1 and Reg2 in " ""STAFF_REGIONS" table.
2 after scoring in the responses the variable "NQ_SESSION." "REGION" is initialized with the values " ""Reg1 & Reg2"
3 now I am adding Reg3 to the table ""STAFF_REGIONS " of Walter White."
4 Walter White is logging in the responses and retains data only from Reg1 and Reg2 - why? Because variable NQ_SESSION. REGION still has the old values.
So, here is my question: How can I reset it variable? Reconnection to the answers doesn't help. The only solution I know not is to restart CoreApplication, but this is not an acceptable solution.
Uncheck the box for hidden in InitBlock variable
If brand aid
-
problem creating session initialization block
Hello
I use OBIEE11.6, I would once again a block of session initialization and I select the database as Data Source Type, select the default initialization string box, but when I select the connection pool, the there is no connection pool in the right pane, I created two pools of connections by oracle DB before ,
but now I can't select the connection pool, the button is gray and cannot click.
But when I again a repository initialization block, I can select the connection pool.
so I do not know why.
If you know it please help me.
Thank you!Hello
Try this: in the administration tool go to tools-> Options-> general tab and check "allow first connection Pool for blocks. Init option."
-
How to get user to another or no current session vars
We should know that the session.varname syntax will get or set a session for users currently making the requestvariable.
But if we can write a method for the structure of the session for a given user, when it is supplied with an identifier valid as sessionID?
Don't shout not everyone that all at the same time now.
Google "coldfusion sessiontracker"... There's a bunch of stuff...
--
Adam
Maybe you are looking for
-
How to collect and sort lists of tasks
I share a file of numbers with a client via iCloud. Each department puts their requests in a spreadsheet in a different tab, and the spreadsheet sizes vary according to the number of pending applications. I wonder if there is a way to create a table
-
Need CD recovery WIN XP Pro Sat A60
I need to re build my A60, but lost the recovery CD number 2, where I can download the CD recovery set. Thank you Simon
-
I am REALLY struggling with Windows Livemail I lost all my emails my vistas 'Outlook Express' settings and other that I've upgraded to Windows 7 recently Windows livemail is now alive and active, but my 2008 computer is still slow. A friend told me w
-
When I try to install Halo2 I get the message "the installation source for this product is not available. Verify that the source exists and that you can access. Above this is the redists\vcredist.msi file: It will not install. I tried to install the
-
2 questions: win8 license &; replace the AC adapter / CC
Hello. I have an acer V5-552 G-X 414 and I replaced win8 with win7 and I want togo to return. There is no sticker on the back for windows serial. Where can I get it back? Also, I've lost the adapter a/c and im trying to buy a replacement. Does anyone