Variable Scope / Server Scope
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.
Learn More
Subtitles of the Movie
Server variables are probably the easiest scope to describe. You use server.variable name to set a server scope variable using CFset or CFparam. Server scope variables are available to all applications, all clients and all sessions on a server. So this is a much higher-level scope than a single application variable. So if you had a ColdFusion server and you had multiple applications you were working within that server and you wanted all of those applications to have access to some information, you could put them into a server scope variable. It is stored in memory. These are deleted on server shutdown. There is no timeout for a server scope variable. So it doesn't automatically timeout. The only time they would expire is if the server shuts down. There is no area specific to server variables in the ColdFusion administrator. So unlike application, session and client variables, I don't have a screen in ColdFusion administrator to show you for server scope variables. But that is the basic information on a server scope variable. I think you will find these not used that often within your applications. They're really for a specific purpose.
Tutorial Information
| Course: | ColdFusion MX 7 Advanced |
| Author: | Candyce Mairs |
| SKU: | 33828 |
| ISBN: | 1-934743-34-8 |
| Release Date: | 2007-11-30 |
| Duration: | 6 hrs / 89 lessons |
| Work Files: |
Yes |
| Captions: | For Online University members only |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 98,729 Video Tutorials (23,265 free)
- Video Available as Flash or QuickTime
- Over 1026 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 