• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

session variables

How do I set session variables in coldfusion?

I Know I am a rookie.
0
Dysfunctional
Asked:
Dysfunctional
  • 2
1 Solution
 
CFDevHeadCommented:
<cfset session.mySessionVariable='blah blah'>
0
 
CFDevHeadCommented:
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now