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: 61 views, +0 rating

> So what you are saying is that you are passing these session variables > through the url on every page request? And that you find this much more > effective then storing this data in cookies?

Session variables don't need to be passed, they're persistent for the life of the variable (set up in CF Administrator). If you go on

page1.cfm: <CFSET Session.FirstName = "Joe">

You can go in page2.cfm and <CFOUTPUT>#Session.FirstName#</CFOUTPUT>

and it will work (assuming you have session vars turned on, and both pages are part of the same app).

They're like global variables (ie Application vars) except they're specific to a user (in the context of a browser session).

Like how would you pass a Structure or an Array in a cookie or URL. You would have to serialize it, which is super complicated and not worth the trouble.

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 (this post)   (61 v/ +0 r)
Re: new topic - Session variables  23 Mar 2001   (28 v/ +0 r)
Re: new topic - Session variables  23 Mar 2001   (48 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