Re: getSessionList.cfm UDF

2006-12-08 Thread Ryan Stille
Are there any CF/Java or server configuration issues that would prevent this from working? I am getting an empty structure, yet I can dump my personal session right below this code. Thanks. ~| Create robust enterprise, web

RE: getSessionList.cfm UDF

2006-12-08 Thread Bobby Hartsfield
that. ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Ryan Stille [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2006 12:32 PM To: CF-Talk Subject: Re: getSessionList.cfm UDF Are there any CF/Java or server configuration issues that would prevent this from working? I

RE: getSessionList.cfm UDF

2006-12-05 Thread Snake
To: CF-Talk Subject: RE: getSessionList.cfm UDF Another reason not to use shared hosting and another example of how CFMX is just not suitable for shared hosting. In any case, can't you disable CreateObject(java,...) with security sandboxes? Yes you can, and we do, but some hosts

RE: getSessionList.cfm UDF

2006-12-05 Thread Bobby Hartsfield
Ray, I sent this to your Gmail account but didn't get a reply. I also tried AIM'ing you a couple of times today with no response so here it is: Maybe we can rename it to getAppSessions() or something else you might find suitable? I chose getAppSessions below. getSessionList implies that it

Re: getSessionList.cfm UDF

2006-12-05 Thread Raymond Camden
I did see your mail - just got busy. I think the name is fine. I replaced the author's name with yours and gave him credit for the first version. Ray, the benevolent CFLIB dictator. On 12/5/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: Ray, I sent this to your Gmail account but didn't get a

RE: getSessionList.cfm UDF

2006-12-05 Thread Bobby Hartsfield
-Talk Subject: Re: getSessionList.cfm UDF I did see your mail - just got busy. I think the name is fine. I replaced the author's name with yours and gave him credit for the first version. Ray, the benevolent CFLIB dictator. On 12/5/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: Ray, I sent

Re: getSessionList.cfm UDF

2006-12-05 Thread Raymond Camden
Ack. Fixed for real this time. On 12/5/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: Ok, but appname is a required parameter. :-) * @param appname Application name. (Optional) ~| Create robust enterprise, web RIAs.

RE: getSessionList.cfm UDF

2006-12-04 Thread Bobby Hartsfield
I haven’t used it, but have used my own. cfscript function getSessions(appName) { var tracker = createObject(java,coldfusion.runtime.SessionTracker); return tracker.getSessionCollection(appName); } /cfscript cfdump var=#getSessions(application.applicationName)# That will dump ALL sessions in

Re: getSessionList.cfm UDF

2006-12-04 Thread Raymond Camden
Bobby, you mind if I borrow this mod and add it to the core UDF as an optional argument? On 12/4/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: I haven't used it, but have used my own. cfscript function getSessions(appName) { var tracker =

RE: getSessionList.cfm UDF

2006-12-04 Thread Bobby Hartsfield
Not at all. :-) ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 11:38 AM To: CF-Talk Subject: Re: getSessionList.cfm UDF Bobby, you mind if I borrow this mod and add

Re: getSessionList.cfm UDF

2006-12-04 Thread Raymond Camden
Updated. On 12/4/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: Not at all. :-) ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -- === Raymond Camden Email: [EMAIL PROTECTED] Blog :

RE: getSessionList.cfm UDF

2006-12-04 Thread Snake
: Re: getSessionList.cfm UDF Bobby, you mind if I borrow this mod and add it to the core UDF as an optional argument? On 12/4/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: I haven't used it, but have used my own. cfscript function getSessions(appName) { var tracker = createObject(java

RE: getSessionList.cfm UDF

2006-12-04 Thread Bobby Hartsfield
:59 PM To: CF-Talk Subject: Re: getSessionList.cfm UDF Updated. On 12/4/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: Not at all. :-) ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -- === Raymond

RE: getSessionList.cfm UDF

2006-12-04 Thread Bobby Hartsfield
Maybe it would be better to say that you as a developer should know better than to put things that you shouldn't into a scope so easily accessible by others. ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -- No virus found in this outgoing message. Checked by AVG Free

RE: getSessionList.cfm UDF

2006-12-04 Thread Dave Watts
While this is great for debugging etc, do you realise the security implications. All customers on a shared server can write code like this to view everyone elses (including yours) session and application variables as for all apps on the server, which will often contain personal data,

Re: getSessionList.cfm UDF

2006-12-04 Thread Raymond Camden
Sorry. I don't buy that. I do agree that you shouldn't store sensitive info in the shared memory scopes if you aren't on your own serever. On 12/4/06, Snake [EMAIL PROTECTED] wrote: While this is great for debugging etc, do you realise the security implications. All customers on a shared server

Re: getSessionList.cfm UDF

2006-12-04 Thread Raymond Camden
Thanks - mispaste on my part. If folks were to see the code behind CFLib, they would run screaming On 12/4/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: As you have it now will error. Appname doesn't exist. It will need to be one of the two function getSessions(appName) { var

RE: getSessionList.cfm UDF

2006-12-04 Thread Bobby Hartsfield
PROTECTED] Sent: Monday, December 04, 2006 4:33 PM To: CF-Talk Subject: Re: getSessionList.cfm UDF Thanks - mispaste on my part. If folks were to see the code behind CFLib, they would run screaming On 12/4/06, Bobby Hartsfield [EMAIL PROTECTED] wrote: As you have it now will error. Appname

Re: getSessionList.cfm UDF

2006-12-04 Thread Richard Cooper
Thanks Bobby, that was exactly what I needed. Richard ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2

RE: getSessionList.cfm UDF

2006-12-04 Thread Snake
: getSessionList.cfm UDF Maybe it would be better to say that you as a developer should know better than to put things that you shouldn't into a scope so easily accessible by others. ...:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -- No virus found in this outgoing message. Checked

RE: getSessionList.cfm UDF

2006-12-04 Thread Snake
: Dave Watts [mailto:[EMAIL PROTECTED] Sent: 04 December 2006 21:31 To: CF-Talk Subject: RE: getSessionList.cfm UDF While this is great for debugging etc, do you realise the security implications. All customers on a shared server can write code like this to view everyone elses (including yours

RE: getSessionList.cfm UDF

2006-12-04 Thread Bobby Hartsfield
. ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Snake [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 6:30 PM To: CF-Talk Subject: RE: getSessionList.cfm UDF Well that said, it has always been given as good practice to store your

RE: getSessionList.cfm UDF

2006-12-04 Thread Snake
:[EMAIL PROTECTED] Sent: 05 December 2006 00:04 To: CF-Talk Subject: RE: getSessionList.cfm UDF Personally, I've never thought that was a good idea or good practice at all. If the user needs to login, ask them for the password; if they have a valid session, don't let it time out or reset it when you

RE: getSessionList.cfm UDF

2006-12-04 Thread Dave Watts
Another reason not to use shared hosting and another example of how CFMX is just not suitable for shared hosting. In any case, can't you disable CreateObject(java,...) with security sandboxes? Yes you can, and we do, but some hosts don't, so I'm just giving a word of warning to

RE: getSessionList.cfm UDF

2006-12-04 Thread Bobby Hartsfield
PM To: CF-Talk Subject: RE: getSessionList.cfm UDF I definitely wouldn't say it is a good idea to give your web site users your database password under any circumstances. Any it wouldn't be a very user friendly web site if visitors had to enter your database password to make it work. -Original