Solved

session variables

Posted on 2003-11-21
2
401 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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.
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 manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
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…

696 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