|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-03-03 07:56 UTC] ricardo at aganp dot go dot gov dot br
Description: ------------ When session.start() PHP document is loaded at the first time it?s necessary to refresh the page to view the contents. We are using the PHP version 4.0.4pl1 before this new version 4.2.2 and this problem not happened. There is some BUG on this 4.2.2 PHP Version about session? How can I solve my problem? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 04:00:02 2025 UTC |
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. ---- 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>