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
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
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
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
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
-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
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.
I havent 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
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 =
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
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
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
: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
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
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,
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
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
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
Thanks Bobby, that was exactly what I needed.
Richard
~|
Create robust enterprise, web RIAs.
Upgrade integrate Adobe Coldfusion MX7 with Flex 2
: 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
: 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
.
..:.:.:.:.:.:.:.:.:.:.:.
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
:[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
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
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
25 matches
Mail list logo