pho - session_start() problem

Status
Not open for further replies.

wheres me jumpa

New Member
php - session_start() problem

Ive the following in a php file

Code:
<?php

session_start();


?>
No other information is sent before the function, Ive used it before with no problems on other projects. However when I try use it now, two hyperlinks are displayed at the top of the page with the function name. A user id is meant to be stored in a session variable but this does not happen as the function to start session variables doesnt seem to be enabled.

Ive never come across this problem before, any ideas?
 

louie

New Member
a look at the complete code should help. Anyhow the session_start(); should be the first line of code:
PHP:
<?php session_start(); 
 
//the rest of the code here
?>
 

louie

New Member
change to this and see how is doing:
PHP:
<?php if( !isset( $_SESSION ) ) { session_start(); }//session_start(); 
ob_start("ob_gzhandler");
//rest of the code
 
?>
 
Status
Not open for further replies.
Top