Re: prob with session start
| From: | Renze Munnik | Date: | Mon, 13 Aug 2001 11:26:59 +0000 |
| Subject: | Re: prob with session start | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62408@lists.php.net to get a copy of this message | ||
On Mon, Aug 13, 2001 at 04:33:49PM +0530, Balaji Ankem wrote:
> Hi! friend,
> I want to start session if authentication is succesfull means if he is a valid user.
> Then what i have to do Renze??
>
> Thanks in advance.
>
> With warm regards
> -Balaji
I think (haven't got time to test it) you should move the two
header()-lines down. Just put them right before you want to sent
some output. Or, ofcourse, right behind the session_start().
Think that should do the job.
You just have to keep in mind, that no output should be sent before
you try to send headers and that session_start() should be as close
as possible to the start of your script.
--
* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: renze@datalink.nl
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM HAARLEM
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««