Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

persistent struct

Status
Not open for further replies.

diggy8

IS-IT--Management
May 24, 2002
35
US
How can I make a persistent structure without using the session scope?
 
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.

Thanks!
 
timeouts aren't a problem if someone is actually using the site, right? timeout restarts after activity?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top