Joined: 09 Nov 2004 |
Posts: 1 |
|
|
![](./templates/Morpheus/images/spacer.gif) |
Posted: Mon Nov 08, 2004 5:51 am |
|
![](./templates/Morpheus/images/posttop_left.gif) |
![Reply with quote Reply with quote](templates/Morpheus/images/lang_english/blue/icon_quote.gif) |
![](./templates/Morpheus/images/spacer.gif) |
![](./templates/Morpheus/images/spacer.gif) |
All
I'm having trouble getting sites that I know work in the wild, to work in the IDE. My problem is with sessions, here's a two page test harness. I'm NOT running this in debugger althought the result is the same for me if I do.
index.php
<?php
$_SESSION['UID'] = 40;
header("Location: page2.php");
?>
page2.php
<?php
echo "Should be here";
echo $_SESSION['UID'];
?>
I get a strangly named file in the session.save_path (as expected) and $_SESSION['UID'] is set in the global watch window, but once we jump to page2.php $_SESSION is undeclared.
I found a strange thing, if I set php.ini session.auto_start to 0, run again and then set it back to back to 1, everthing then works for the duration of the IDE session (not php session), but when I restart the IDE, nothing again.
I've played with all combinations of session_start(), session_destroy(), but as I don't need them out in the wild. why should I need them in the IDE (they don't help me anyway).
Strange eh ??
BTW Great product, if only I could get past this behavour.
|
|