Thanks again Dave, CF's scheduler looks like it will do the job, and
seems more suited for what I'm doing than sessions.
John
On Jun 16, 2007, at 12:44 PM, Dave Watts wrote:
>> Aha! That might be the ticket! Is this something built into
>> CF, or are you talking more along the lines of someth
> Aha! That might be the ticket! Is this something built into
> CF, or are you talking more along the lines of something like
> a cron job?
CF has a scheduler, but you can use your OS scheduler (cron, at, whatever)
as well. Historically, there have been problems with CF's scheduler, so I
got int
On Jun 15, 2007, at 2:57 PM, Dave Watts wrote:
>> I could do that, but the stumbling point is not really where
>> to store the data, but how/where to have CF monitor these
>> values and do something with them, without that CF activity
>> being tied to any or all users.
>
> You could store the sess
ou're using a socketless method to connect everyone, the
complexity of handling what you want is a real pain...
!k
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Friday, June 15, 2007 1:10 PM
To: CF-Talk
Subject: RE: Using sessions with Flash Remoting
I be
riginal Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, June 15, 2007 1:58 PM
To: CF-Talk
Subject: RE: Using sessions with Flash Remoting
> I could do that, but the stumbling point is not really where to store
> the data, but how/where to have CF monitor these values and
> I could do that, but the stumbling point is not really where
> to store the data, but how/where to have CF monitor these
> values and do something with them, without that CF activity
> being tied to any or all users.
You could store the session tokens and timestamps in the Application scope,
On Jun 15, 2007, at 11:01 AM, Dave Watts wrote:
>> I tactually had a logout button in place and working for a
>> while, but I figure nobody will actually use it...
>>
>> "A logout button... why would I use that? I'll just close the
>> window and save myself the hassle."
>
> Maybe you could use the
> I tactually had a logout button in place and working for a
> while, but I figure nobody will actually use it...
>
> "A logout button... why would I use that? I'll just close the
> window and save myself the hassle."
Maybe you could use the JavaScript onUnload event to capture logout
informati
e actual chat communication? If you're using
> either XML sockets or FMS, than you can trigger the notification
> from there...
>
> !k
>
> -Original Message-
> From: John Robinson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 14, 2007 2:01 PM
> To: C
I tactually had a logout button in place and working for a while, but
I figure nobody will actually use it...
"A logout button... why would I use that? I'll just close the window
and save myself the hassle."
I also thought about updating a timestamp every time they do
something. I have a fu
On 6/14/07, John Robinson wrote:
> Actually in this case, I do need to kill the session. I'm building a
> chat app. When a user leaves, I need to let the other users still
> active in the chat know that this user has left. Essentially I'm
You can always do something like if they click the log
You're right, it is onSessionEnd. I have that working. I'm going to
try to see what errors I can get later tonight.
And yes, you're right in that I *should* be using FMS (I'd much
rather be!) but my client wants this in CF. The chat actually works
pretty well so far aside from this one issue
> Actually in this case, I do need to kill the session. I'm
> building a chat app. When a user leaves, I need to let the
> other users still active in the chat know that this user has
> left. Essentially I'm deleting them from a temp table in a
> db. Make sense? The only indication I've found s
Using sessions with Flash Remoting
On Jun 14, 2007, at 3:47 PM, Dave Watts wrote:
>> Given that that is the case and I have no way of knowing the
>> browser closed, I have a function (defined in a .cfc) called
>> by flash that basically loops for a while and returns some
>> d
On Jun 14, 2007, at 3:47 PM, Dave Watts wrote:
>> Given that that is the case and I have no way of knowing the
>> browser closed, I have a function (defined in a .cfc) called
>> by flash that basically loops for a while and returns some
>> data (or it times out and then returns an empty record set
> Given that that is the case and I have no way of knowing the
> browser closed, I have a function (defined in a .cfc) called
> by flash that basically loops for a while and returns some
> data (or it times out and then returns an empty record set).
> As soon as I get this response, I send out
On Jun 14, 2007, at 11:12 AM, Dave Watts wrote:
>> onRequest... mine looks like this, but if I leave it in
>> Application.cfc, remoting fails altogether:
>>
>>
>>
>>
>
> You can't use onRequest with Flash Remoting or SOAP.
Ok! I won't ask why, but it's one for the archives I guess :)
>
> onRequest... mine looks like this, but if I leave it in
> Application.cfc, remoting fails altogether:
>
>
>
>
You can't use onRequest with Flash Remoting or SOAP.
> I'm also using J2EE sessions, which somewhere in the docs I
> thought it said "the session will end when the user clo
Woot! I finally got it working, thanks to Sean's insight. There are a
few issues still that I'm not sure about.. namely:
onRequest... mine looks like this, but if I leave it in
Application.cfc, remoting fails altogether:
I'm also using J2EE sessions, which somewhere in the docs I t
Sean - my comments inline :
On Jun 12, 2007, at 5:11 PM, Sean Corfield wrote:
> On 6/12/07, John Robinson <[EMAIL PROTECTED]> wrote:
>> So ignoring the stuff below, can you or anyone shed some light on how
>> I can set a Client or Session variable in the cfc that I'm using with
>> flash, that I c
Thanks Kevin, I saw an earlier post of yours that mentioned how you
didn't like using sessions with flash, and that is was a pain in the
arse.
Technically though, this shouldn't have much to anything to do with
flash or remoting. I'm working on a chat application and have it all
working ex
On 6/12/07, John Robinson <[EMAIL PROTECTED]> wrote:
> So ignoring the stuff below, can you or anyone shed some light on how
> I can set a Client or Session variable in the cfc that I'm using with
> flash, that I can use later in my onEndSession function?
Oops, I misread your code somewhat! I neve
d fine.
Cheers,
!k
-Original Message-
From: John Robinson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 12, 2007 2:57 PM
To: CF-Talk
Subject: Re: Using sessions with Flash Remoting
Thanks Sean -
So ignoring the stuff below, can you or anyone shed some light on how
I can set a Cl
Thanks Sean -
So ignoring the stuff below, can you or anyone shed some light on how
I can set a Client or Session variable in the cfc that I'm using with
flash, that I can use later in my onEndSession function?
In my onEndSession function, I have 2 arguments, 'sessionScope' and
'appScope'.
On 6/12/07, John Robinson <[EMAIL PROTECTED]> wrote:
> output="false">
>
This stores the client.testVar in VARIABLES.client.testVar which is
essentially thrown away after the request runs.
> Then in my cfc (or cfm file), I have a function that contains this line:
>
Tha
Thanks James. That's about what I figured. I'm trying a very
simplified example but no luck... Here's what I have so far:
Application.cfm
Well onSessionStart and onSessionEnd must go in Application.cfc. This
will need to go in a folder somewhere above the files that your
remoting calls are hitting. I assume you're handling the cookies for
sessions somewhere in your client code?
On 6/12/07, John Robinson <[EMAIL PROTECTED]> wrote:
>
I should note that I'm specifically having trouble with
onSessionStart and onSessionEnd... basically where to put them (in
someFile.cfc or Application.cfc or Application.cfm or?). What I
want is to run a sql query in onSessionEnd, using the vars from the
session (or cookie... I don't re
I'm trying to use session with remoting, but not having any luck. I
simply want to store some user vars (temporary user_id) in a cookie,
and when the session ends (or hopefully, the user closes the window)
the server takes those vars and executes a query to delete that user
from a database.
29 matches
Mail list logo