0

Hello,
Can any one tell me that how to show the name of the user using session. PLease help me by giving a code example and can anyone tell me i am using sessions and it is giving me this error "
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent" i have also used ob_start("ob_gzhandler"); but its not working.Thanks in advance

2
Contributors
9
Replies
10
Views
6 Years
Discussion Span
Last Post by saadi06
0

Use session_start() as the first command in your code.

i have used session_start() but its not working

0

<?php
ob_start("ob_gzhandler");
session_start();
//if(!session_is_registered('$username')){
////header("location:index.php");
//}
//$user=$_REQUEST;
?>

0

thanks i have solved the session_start() problem. Can u please help me in making a script for remembering the user logged in and displaying the name of the user

0

can u pleaase give me a detailed example of how to store the name of the user in session variable and show it on the page when logged in

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.