Solved

session variables

Posted on 2003-11-21
2
397 Views
Last Modified: 2013-12-24
How do I set session variables in coldfusion?

I Know I am a rookie.
0
Comment
Question by:Dysfunctional
  • 2
2 Comments
 
LVL 9

Accepted Solution

by:
CFDevHead earned 455 total points
ID: 9799922
<cfset session.mySessionVariable='blah blah'>
0
 
LVL 9

Expert Comment

by:CFDevHead
ID: 9799935
Make you application looks something like this


<cfset app= structNew()/>
<cfset app.sessionTimeOut=#CreateTimeSpan(0,0,90,0)#/>
<cfapplication       name="myApp"
                        clientmanagement="yes"
                        clientstorage="cookie"                  
                        setclientcookies="yes"
                        setdomaincookies="yes"
                      sessionmanagement="yes"
                        sessiontimeout='#app.sessionTimeOut#'
                        applicationtimeout='#CreateTimeSpan(0,5,30,0)#'>

And check out a book on CF
http://forta.com/books/0321125169/
 ColdFusion MX Web Application Construction Kit
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question