Re: why won't session_start() work?
| From: | jas | Date: | Thu, 28 Feb 2002 05:49:55 +0000 |
| Subject: | Re: why won't session_start() work? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17369@lists.php.net to get a copy of this message | ||
Not to mention that you are registering two different variables... try
combining the two by putting a coma between them. i.e.
session_register('signor','username');
HTH
Jas
"Jas" <jlgerfen@hotmail.com> wrote in message
news:20020228172806.87672.qmail@pb1.pair.com...
> Ryan,
> Do you have anything else between your <?php and ?>. Need more code
to
> determine why.
> Jas
> "Ryan Snow" <snow@cosmic.utah.edu> wrote in message
>
> news:Pine.OSF.3.91.1020227180416.30252D-100000@bessie.cosmic.utah.edu...
> >
> > when I do:
> > session_start();
> > session_register('signor');
> > session_register('username');
> >
> >
> > I get:
> >
> > Warning: Cannot send session cookie - headers already sent by (output
> > started at /var/www/html/index.php:3) in
> > /var/www/html/index.php on line 14
> >
> > Warning: Cannot send session cache limiter - headers already sent
(output
> > started at /var/www/html/index.php:3) in
> > /var/www/html/index.php on line 14
> >
> > Anybody know why?
> >
> > Thanks.
> >
> > Ry
>
>