Home
Username:
Password:
ColdFusion MX 7 Advanced Tutorials

Session Scope / Ending a Session




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

I thought it worthwhile to provide a brief movie on when a session ends. I know I have talked about this throughout this session section of movies, but there are a couple of additional things that are available to you that I thought I would bring up. So when does a session end? When using ColdFusion session variables, when the session timeout has occurred, not when the browser closes. J2EE session variables, when the browser closes or the session timeouts. But a few things to note about session variables; logging out a user does not end the session or delete session variables. When the session does end, session-scope variables are then deleted. Because a session is stored as a structure, you have access to all of the structure functions so you could use the struct clear for a session variable to clear the values of a structure. But clearing the structure does not clear the session ID. So those will continue to be available until the browser closes. Clearing a structure also does not log a user out. We'll be looking at login features in later movies. You can invalidate a session if you're using J2EE session variables using this line of code that would invalidate the session; however, your session information is still available until the end of the page request. So just a few notes about session variables, how to clear them, whether you're using ColdFusion or J2EE session variables and also just a few other notes on session variables themselves.

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