|
Posted by dangerd on 04/09/07 21:19
On Apr 9, 8:52 pm, iktorn <s...@phpfreelancer.net> wrote:
> dangerd napisał(a):
>
> > Hello,
>
> > Thought I'd try this forum as I got some useful help from here before.
>
> > Duncs
>
> > The code for all the php pages can be seen by changing the .php
> > to .txt, i.e:
>
> Hello, first of allhttp://www.multidome.co.uk/test/authorisation.txt
> is wrong - you should call session_start() before sending any data to
> the browser (at the beggining of your scripts).
> Write it for example one line after error_reporting (null);
> (and remove it from auth() function).
>
> Secondly, don't use session_register, just write anything to $_SESSION
> (if you are using PHP 4.1 or later).
>
> --
> Wiktor Walchttp://phpfreelancer.net
Thanks for the help Wiktor,
>is wrong - you should call session_start() before sending any data to
> the browser (at the beggining of your scripts).
> Write it for example one line after error_reporting (null);
> (and remove it from auth() function).
The point of having it inside the function is to only start the
session if a session has not already been started. With that in mind,
do you still think I should take it out of the function?
Duncs
Navigation:
[Reply to this message]
|