CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CCSetSession bug?!

Print topic Send  topic

Author Message
cRAsH
Posted: 06/29/2002, 7:16 PM

Here's one that took me a couple of hours to figure out.
In Common.php the function looks like this:
function CCSetSession($param_name, $param_value)
{
global ${$param_name};
if(session_is_registered($param_name))
session_unregister($param_name);
${$param_name} = $param_value;
session_register($param_name);
}

Why are there curly brackets surrounding the variable $param_name?
I could NOT get the session variables to set until I removed the curly brackets,
and now they work just fine.

Can anybody explain to me WHY this is setup this way? Makes no sense to me, and caused me plenty of hair-pulling...
Chris K.
Posted: 06/30/2002, 7:54 AM

Perhaps your PHP version doesn't support this syntax yet. What is your PHP bersion?

This will be fixed in the next CCS version to use global session variables arrays, but this declaration should be fixed as well.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.