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
Rad1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.