Re: Using sessions with Flash Remoting

2007-06-16 Thread John Robinson
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

RE: Using sessions with Flash Remoting

2007-06-16 Thread Dave Watts
> 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

Re: Using sessions with Flash Remoting

2007-06-15 Thread John Robinson
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

RE: Using sessions with Flash Remoting

2007-06-15 Thread Kevin Aebig
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

RE: Using sessions with Flash Remoting

2007-06-15 Thread Andy Matthews
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

RE: Using sessions with Flash Remoting

2007-06-15 Thread Dave Watts
> 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,

Re: Using sessions with Flash Remoting

2007-06-15 Thread John Robinson
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

RE: Using sessions with Flash Remoting

2007-06-15 Thread Dave Watts
> 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

Re: Using sessions with Flash Remoting

2007-06-15 Thread John Robinson
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

Re: Using sessions with Flash Remoting

2007-06-15 Thread John Robinson
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

Re: Using sessions with Flash Remoting

2007-06-14 Thread Dinner
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

Re: Using sessions with Flash Remoting

2007-06-14 Thread John Robinson
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

RE: Using sessions with Flash Remoting

2007-06-14 Thread Dave Watts
> 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

RE: Using sessions with Flash Remoting

2007-06-14 Thread Kevin Aebig
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

Re: Using sessions with Flash Remoting

2007-06-14 Thread John Robinson
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

RE: Using sessions with Flash Remoting

2007-06-14 Thread Dave Watts
> 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

Re: Using sessions with Flash Remoting

2007-06-14 Thread John Robinson
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 :) >

RE: Using sessions with Flash Remoting

2007-06-14 Thread Dave Watts
> 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

Re: Using sessions with Flash Remoting

2007-06-14 Thread John Robinson
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

Re: Using sessions with Flash Remoting

2007-06-13 Thread John Robinson
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

Re: Using sessions with Flash Remoting

2007-06-13 Thread John Robinson
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

Re: Using sessions with Flash Remoting

2007-06-12 Thread Sean Corfield
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

RE: Using sessions with Flash Remoting

2007-06-12 Thread Kevin Aebig
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

Re: Using sessions with Flash Remoting

2007-06-12 Thread John Robinson
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'.

Re: Using sessions with Flash Remoting

2007-06-12 Thread Sean Corfield
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

Re: Using sessions with Flash Remoting

2007-06-12 Thread John Robinson
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

Re: Using sessions with Flash Remoting

2007-06-12 Thread James Holmes
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: >

Re: Using sessions with Flash Remoting

2007-06-11 Thread John Robinson
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

Using sessions with Flash Remoting

2007-06-11 Thread John Robinson
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.