Re: session management
| From: | TV Karthick Kumar | Date: | Wed, 09 Aug 2000 08:49:52 +0000 |
| Subject: | Re: session management | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10871@lists.php.net to get a copy of this message | ||
Hi Joseph,
I think you have mis understood the code that I pusted in my previous
mail.
My session.auto_start is NOT set to 1 in my php.ini !. I am starting it
explicitly. That's fine.
But I am not using two pages. The whole code goes into only one file and
that's sessions.php and when I execute that php file, I am getting the CGI
Error which is not understandable.
Okay. Let's leave my code apart. Can you just give me an example of
testing the sessions ?. I shall just try with the code. Please mail me.
Thanx in advance.
~ Karthick
----- Original Message -----
From: Joseph Okomba <Okomba@kabage.co.ke>
To: 'TV Karthick Kumar' <tvkarthick@mailops.com>
Sent: Wednesday, August 09, 2000 10:06 AM
Subject: RE: [PHP] session management
> Unless session.auto_start is set to 1 you need to start the session
> explicitly.
>
> It appears that you're calling session_start(); on nextpage.php but not
on
> the first page. You might need to call session_start(); on both pages.
>
> Good luck.
>
> > -----Original Message-----
> > From: TV Karthick Kumar [SMTP:tvkarthick@mailops.com]
> > Sent: Tuesday, August 08, 2000 3:47 PM
> > To: Sascha Schumann
> > Cc: PHP Mailing list
> > Subject: Re: [PHP] session management
> >
> > Hi,
> >
> > I had posted this problem y'day itself. But I haven't got any
replies
> > so
> > far.
> >
> > Whenever I deal with the Sessions, I get this error:
> >
> > I am using PHP 4.0 in Windows 98.
> >
> > As I started implementing sessions() in a test program, I am getting
a
> > 'Illegal operation' error. It's also displaying an Error like this:
> >
>
> --------------------------------------------------------------------------
> > --
> > --------------------------------------------------
> > CGI Error
> >
> > The specified CGI application misbehaved by not returning a complete
> > set
> > of HTTP headers. The headers it did return are:
> >
>
> --------------------------------------------------------------------------
> > --
> > --------------------------------------------------
> >
> > What's the Error / problem here and tell me how to solve it ?.
> >
> > I am also digging the mailing list archives for the solution to my
> > problem !.
> >
> > And here's my program:
> >
> > <?php
> > session_register("count");
> > $count++;
> > ?>
> >
> > Hello visitor, you have seen this page <? echo $count; ?> times.<p>
> >
> > <php?
> > # the <?=SID?> is necessary to preserve the session id
> > # in the case that the user has disabled cookies
> > ?>
> >
> > To continue, <A HREF="nextpage.php?<?=SID?>">click here</A>
> > <?
> > session_start();
> > session_register('count');
> > $count++;
> > echo "<p>You've been here $count times. Thanks !</p>";
> > ?>
> >
> > Thanks in advance.
> >
> > ~ Karthick
> >
> >
> >
> > ----- Original Message -----
> > From: Sascha Schumann <sascha@schumann.cx>
> > To: Richard Jones <rikki@ultramail.co.uk>
> > Cc: <php-general@lists.php.net>
> > Sent: Tuesday, August 08, 2000 5:55 PM
> > Subject: Re: [PHP] session management
> >
> >
> > > > session_register($ARRAY);
> > >
> > > Reading the documentation will help you.
> > >
> > >
> > > http://www.php.net/manual/function.session-register.php
> > >
> > > - Sascha
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>