zabberwan Posted December 9, 2011 Share Posted December 9, 2011 I inserted the following: function curPageURL() { $pageURL = 'http'; if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if (isset($_SERVER["SERVER_PORT"]) && $_SERVER["SERVER_PORT"] != "80" && $_SERVER["SERVER_PORT"] != "443") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } session_start(); $_SESSION['last_page'] = curPageURL(); However, I get an error (the actual error message in email form is much longer): An error occurred in script '########### /ventureFunctions.php' on line 97: A session had already been started - ignoring session_start() <br />Date/Time: 12-8-2011 18:51:57 <br /> How to fix this, please? Thank you zabberwan Link to comment Share on other sites More sharing options...
Larry Posted December 9, 2011 Share Posted December 9, 2011 If you read the error, it says that a session has already been started. So you either need to remove this session_start() or the first one, wherever that may be. Link to comment Share on other sites More sharing options...
zabberwan Posted December 9, 2011 Author Share Posted December 9, 2011 Thanks Larry. No more error, it works! Seasons Greetings to all in the meanwhile.. zabberwan Link to comment Share on other sites More sharing options...
Recommended Posts