Groups | Blog | Home
all groups > flash actionscript > october 2007 >

flash actionscript : Expiring a SharedObject


victor.corey
10/24/2007 10:17:22 PM
I can not use cookies, per company policy.???

That being said, I figured I could show animation 1 once, then set a
SharedObject. Each time after that show animation 2.

This seemed fine until it was decided that this should only happen per
session. I have since found that SharedObjects do not expire. So my thought is
this:

1. Pass an ASP sessionId in as a FlashVar. Session.SessionID
2. Use the sessionid as the value of the SharedObject.
3. If the SessionID matches the same in the SharedObject show animation 2
otherwise show animation 1 and changed the SharedObject value.

Does anyone see a problem with this approach?

Thanks,
Victor
kglad
10/24/2007 11:45:01 PM
victor.corey
10/25/2007 3:53:23 PM
kglad
10/25/2007 4:11:58 PM
what's the point in determining if a session has expired?

ie, why does it make a difference to you if a user

1) returns to your website after navigating away from your website (same
session)

vs.

2) returns to your website after closing their browser (different session)?
victorcorey
11/1/2007 4:12:44 PM
Basically my requirement says that the first time a users visits a
page show a long animation swf file, each subsequent visit to the page
during that users session show a short animation. If the user returns
then show the long animation again the 1st time, etc.

I am open to other ideas.

Thanks,
vc
victor.corey
11/1/2007 11:15:09 PM
Basically my requirements say show a long animation the 1st time a user visits per session then show a short animation.

Any other ideas are welcome.

Thanks,
kglad
11/2/2007 12:08:00 AM
i still don't see why it matters to the client whether 1 has occurred or 2?

AddThis Social Bookmark Button