Danbury Area Computer Society - Community Forum
  • Search
  • Member List
  • Calendar
Current time: 05-21-2012, 07:54 PM Hello There, Guest! (Login — Register)
Danbury Area Computer Society - Community Forum › Members Only › Open Source Web Programming SIG
Application server variabe scope best practice question

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Application server variabe scope best practice question
09-13-2010, 12:54 PM
Post: #1
snh Offline
Member
***
Posts: 54
Joined: Oct 2008
Reputation: 0
Application server variabe scope best practice question
While I'm particularly interested in the ColdFusion answer for this, I'm curious if there's a general rule regarding how much info to store in the client variable scope? (In CF, this is separate from the session scope.)

The app I'm the caretaker of seems to do a lot of similar queries for account info, and it appears to be a lot simpler to just dump the whole account info out into the client variable scope for use within the session, and but can have shorter longevity than the session scope.

I cannot figure out what the fallout is, or if it was just an oversight of the India-guys that had this app before me that they did not think to do this.

TIA -S
Find all posts by this user
Quote this message in a reply
09-13-2010, 02:16 PM
Post: #2
dragonbite Offline
Guy w/broom walking behind the parade.
****
Posts: 346
Joined: Aug 2008
Reputation: 2
Re: Application server variabe scope best practice question
You mean, putting info into a cookie or a session variable? Consider either of these locations unsecure and just convenient for things that don't matter much (first name, last name, etc.) and avoid user id, passwords and credit card info.

If you are doing numerous queries for the same data across multiple tables, you could set up a database table to store the often-access or sensitive data (indexed for speed?) with a GUID identifier and the GUID is stored on the client-side (session variable or even cookie). That way, if this information is used in queries you don't have to pass it back-and-forth each time, it's already in the database. When the session is over, then delete the record.

Just my $0.02, ymmv :yippee

Linux provides freedom, the problem is most users don't now what it is, or what to do with it.
Ubuntu User# : 17583, Linux User# : 477531
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Edit your posts with [SOLVED] so everybody knows there is a solution.
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


User(s) browsing this thread: 1 Guest(s)
  • Contact Us
  • Home
  • Return to Top
  • Lite (Archive) Mode
  • RSS Syndication
  • Help
Current time: 05-21-2012, 07:54 PM Powered By MyBB, © 2002-2012 MyBB Group. Theme created by Justin S.