macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

Re: session vars, CFCs and CFHTTP

Subject: Re: session vars, CFCs and CFHTTP
From: Ian Skinner
Date: Tue, 29 Apr 2008 14:10:43 -0700
Newsgroups: macromedia.coldfusion.advanced_techniques


wezcornell2008 wrote:
Hi guys

I'm using session vars to maintain whether or not a user is logged in on our site. The only problem is is that the session vars seem to be lost after I call a CFC that then does a CFHTTP post.

 Does anyone know how I maintain the session vars?

 All the best

 Wez



Why do you say they are lost?  Are you sure you did not just misplace them?

In other words nothing about CFC's or CFHTTP would intrinsically destroy session variables in memory. But they could easily not have access to the scope as you desire if you do not understand how templates and cfml code are associated with a given session scope when it is running in memory.


<Prev in Thread] Current Thread [Next in Thread>