|
Home > Archive > Macromedia Flash Server > April 2005 > Non persistent SO's
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Non persistent SO's
|
|
| Simon Lord 2005-04-07, 5:50 pm |
| How long do these last on the server after everyone has left the room?
I have the following:
materialSO = SharedObject.get("currentSession", false);
.... but I can come back 10mins later and that SO still exists and still
has data in it.
Do I need to set the GC to something shorter? Are they connected
somehow?
Sincerely,
Simon
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Dario De Agostini 2005-04-07, 5:50 pm |
| Dear Simon,
> How long do these last on the server after everyone has left the room?
i usually use a small
if (application.clients.lenght==0)
{
// cleanup code
mySharedObj.clear();
[...other code...]
}
in my application.onDisconnect function
i guess non persistent SO will stay alive in memory as long as your
application is "running".
This means that if your application has some kind of keep alive interval
they will never be cleared.
I may be wrong, but i suggest you to do a "clean up" code section when every
client disconnects.
Dario De Agostini
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|
|
|
|