Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Server
Cold Fusion Server Tech
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Server: 
Subject: Re: new topic - Session variables
Tariq Ahmed (14p/+0r)     Posted: Friday 23 Mar 2001
This post: 49 views, +0 rating

> I have never switched to passing these variables through the url because I > have always had something more critical to do. > > So, the topic for the day and we can carry this to next week is: > > How do you handle cookies/session variables?

That's a pretty broad subject. I normally don't use that many cookie variables. I use cookies just as a method for restoring state/identification of the user so they don't need to log in again, ie some kind of SessionKey. So that if the user comes back, and their Session vars are gone, I check the SessionKey and the Username in the database and if they match I can automatically restore their state (via Session vars). If the sessionkey has expired, and the session vars are still valid then the sessionkey is updated. Otherwise they have to log in again to have access to the extra stuff.

Session vars are more convenient and faster to use. As well they can store more complex data types, unlike cookies. CPU power is cheap. RAM is cheap. Making database queries is not cheap, you take a huge relative performance hit everytime you do that. So if you were only using cookie vars then things you would have to keep retrieving from the database, you'd have to keep doing over and over again if your objects needed the same complex information.

Tariq Ahmed - tariq@tibcofinance.com - ICQ H:6308515/W:43686521 TIBCO Finance Technology - Web Group - Senior Web Engineer Work: 650-461-3472 Cell: 650-799-6636 Fax: 650-461-3003 3375 Hillview Avenue. Palo Alto, CA. 94304.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To unsubscribe, send a message to cf-server-request@houseoffusion.com with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com


Similar Subject Line Posts (+/- two weeks of this post)
Re: new topic - Session variables  23 Mar 2001   (33 v/ +0 r)
Re: new topic - Session variables  23 Mar 2001   (61 v/ +0 r)
Re: new topic - Session variables  23 Mar 2001   (28 v/ +0 r)
Re: new topic - Session variables  23 Mar 2001 (this post)   (49 v/ +0 r)
new topic - Session variables  23 Mar 2001   (34 v/ +0 r)
 

Send a reply to the CF-Server list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000