?
Solved

session variables

Posted on 2003-11-21
2
Medium Priority
?
406 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 1820 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

801 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