help for session management
Posted: Tue Oct 31, 2006 5:25 am
i am establishing a session after varifying users userid and password accesssing from database.
My Problem is that while user is getting logout ,and once again getting loged in without closing that broweser.
i am finding this error.
Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/teknowed/greatindian.in/marble/myaccount/login.php:16) in /hsphere/local/home/teknowed/greatindian.in/marble/myaccount/login.php on line 345
Code: Select all
<?php
session_start();
$uid = $_POST['uid'];
$pass = $_POST['pwd'];
$_SESSION['uidsession']="$uid";
$_SESSION['passwordsession']="$pass";
$URL="./myaccount.php";
header ("Location: $URL");
echo '<br /><a href="logout.php?'.SID.'">Log Out</a>';
}i am finding this error.
Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/teknowed/greatindian.in/marble/myaccount/login.php:16) in /hsphere/local/home/teknowed/greatindian.in/marble/myaccount/login.php on line 345
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.