John Ramsden
|
| Posted: 06/18/2003, 2:38 AM |
|
I've posted here before about how developers may need to change
CCSetSession() and CCGetSession() in the module Common.php from
using $HTTP_SESSION_VARS to using $_SESSION.
This avoids a problem whereby the authentication screen fails
to redirect after a successful login.
While installing a browser app of mine on Linux, using Apache
v2.0.40 and PHP v4.3.0, I encountered the same symptoms again,
and fixing this required _another_ change in Common.php:
When the line:
$ReturnPage = getenv("REQUEST_URI");
was amended to:
$ReturnPage = $_SERVER['REQUEST_URI'];
the login worked again!
It would be good if someone who knows the ins and outs of PHP,
maybe one of the CCS developers if they had time, could comment
on the recommended usage of these internal variables and whether
this varies by rev and/or platform. (It shouldn't do, but nothing
is perfect.)
Cheers
John R Ramsden (john_ramsden@sagitta-ps.com)
|
|
|
 |
mutsch
|
| Posted: 06/18/2003, 5:13 AM |
|
John,
Could you please forward this issue to the official Yes Software support in order to get resolved. If you post it in here the risk of not being seen or considered by Yes Software is very high. You can find the support site under:
support.codecharge.com
Thanks.
Mutsch
|
|
|
 |
Sixto
|
| Posted: 06/18/2003, 2:31 PM |
|
Hello John,
There is already an option to instruct CCS to use PHP superglobals instead of the old style global arrays. In Project Explorer, select the root of the tree (your project's name). Then in Properties, change the "Superglobal Arrays" option to Yes.
From then on, CCS generates code using $_SERVER, $_COOKIE, $_POST, $_GET, etc.
Regards,
Sixto
|
|
|
 |
RonB
|
| Posted: 06/19/2003, 1:57 PM |
|
"There is already an option to instruct CCS to use PHP superglobals"
yes there is but with my projects the login procedure no longer redirect to the requested page. So I can not use it in my project. I still have to set the htaccess directive for php to register globals
Ron
|
|
|
 |
|