What is it you're trying to do? Maybe we can come up with a better solution than the one you have in mind. and why not sessions?
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. -Douglas Adams (1952-2001)
I'm actually making a game with ColdFusion, an RPG. I'm using client variables because I'm trying to avoid the timeouts with the session scope. I'm now working on the combat system within the game and want to store the information for the instance of the monster you're fighting in a struct. An array would work just as well, but there's the same problem of the client scope not being able to hold complex elements. If you have any other work around ideas, I'm all ears, I'd just rather avoid using sessions.
well you *could* use a temp database table. but that's alot of db touches ever action. if you expect a lot of users it may bog it down. I don't see many other options though.
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. -Douglas Adams (1952-2001)
Well I wanted to avoid using a bunch of different scopes, but I guess if session is only used for combat, that'll be fine. There's a 2 hour timeout with my hosting, so it shouldn't cause any problems.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.