I have installed XAMP . Now when I am trying to create a session using following code
<?php
session_start();
$_SESSION[‘username’] = ‘abcde’;
$
?>
I get following erroer
Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at C:xampphtdocstrialSES1.PHP:3) in C:xampphtdocstrialSES1.PHP on line 4
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at C:xampphtdocstrialSES1.PHP:3) in C:xampphtdocstrialSES1.PHP on line 4
The php ini has following
session.save_path = “C:xampptmp”
Could you guide me .!! Need urgent help