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

Simulate a session in ColdFusion 9.1

Hello,

Is there a way to simulate a session in ColdFusion 9.01?
If yes, do I do it in Application.cfc?
If yes, would you please point me to a sample code for session simulation.

Thank you
RS
0
Rad1
Asked:
Rad1
  • 2
1 Solution
 
gdemariaCommented:
What do you mean "simulate" a session?  

You can use sessions in Coldfusion by turning them on in the application.cfc and then you can use the session variables which is expire on timeout.   Is that what you're asking about?
0
 
Rad1Author Commented:
No, I copied a site to my computer where I have the newer CF build and want to test it on my computer.
When I run it on my computer I keep getting an error because the session is empty.

I would like to know if the session variable can be populated my a person name, information, etc....?
0
 
gdemariaCommented:
Do you have coldfusion installed as well as CF Builder?  If so, it should work the same as your server.  Your session variables exist if you turn on session management in your application.cfc file.

Session variables can be assigned to hold most anything,
<cfset session.myName = "John Smith">
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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