Solved

session variables

Posted on 2003-11-21
2
394 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
Comment Utility
<cfset session.mySessionVariable='blah blah'>
0
 
LVL 9

Expert Comment

by:CFDevHead
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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 …
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now