Each time I load the page
(including session_start() at the top of the script) for the first time, I need to refresh it. When I remove session_start() it works fine. The PHP version is 4.3.6 (on ver 4.1.1 it works fine). Continuing my problem, I thought it would be helpfull include some of my
scripts. The problem is with last quoted script forgotpass.php. The one
which is not displayed unles refresh is done in browser. After removing
line with session_starts() page is displayed. Any ideas?
---- file: index.php
<?
session_start();
$_SESSION["sitevisitor"]="ok";
/* some scripting, HTML code */
<a href="javascript;" onClick="window.open('login.php',....);">Login</a>
/* some scripting, HTML code */
?>
---- file: login.php
<?
session_start();
if(!isset($_SESSION["sitevisitor"]) || $_SESSION["sitevisitor"]<>"ok") die('Access
deni');
/* some scripting, HTML code */
/* both links below open in current active window, same as login.php was */
<a href="forgotpass.php">Forgot password ?</a>
<a href="regnewuser.php">Register a new user? </a>
/* some scripting, HTML code */
?>
---- file: forgotpass.php, the script I've got the problem displaying
<?
session_start();
if(!isset($_SESSION["sitevisitor"]) || $_SESSION["sitevisitor"]<>"ok") die('Access
deni');
/* some scripting */
echo "this text is displayed";
?>
<HTML>
....
<BODY>
nothing from here is displayed unless Refresh is done in WebBrowser
Whats more, the WebBrowser's location/address bar contains the old index.php URL
</BODY>