Re: sessions with php4.0.0
| From: | Joey++ | Date: | Wed, 24 May 2000 08:55:28 +0000 |
| Subject: | Re: sessions with php4.0.0 | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-19365@lists.php.net to get a copy of this message | ||
Hi avi,
Thanks for the example - same problem, this is a reply from another
usergroup...
I am sitting on the user php IRC at the moment and someone suggested doing
this:
create unique session id,
use array with var names as key
serialise the array
store in table
and then opposite to access...
any suggestions?
all I'm trying to do is get the e-commerce tut on devshed to work ...
/phorum//read.php?num=3&id=1570&thread=1546
this problem is known for some time already, I found that using IIS (meaning
ISAPI) generates that problem, when using the "old style" (cgi
style) this problems doesn't exist. I am surprised that even in the final
version of PHP4 this problem i
s not solved yet... You are not the first who complained about it.
I hope there will be a solution for that soon.
David.
"Joey++" <joey@webmaster.co.za> wrote in message
news:8gg0cu$8d0$1@va.php.net...
> nope, still nothing, now the page won't display because it does not have a
> html header.
>
> I'm going to have to create another .asp site if I can't resolve this...
>
> anyone got a php.ini file that I could look at?
>
> Thanks / Dankie / Siyanbonga
> Joey
>
> joey,
>
> remove *any code* that creates output before the call to
> session_start();
>
> (in this case, remove the line that says <p>Before</p>)
>
> it should work then.
>
> - avi
> "Joey++" <joey@webmaster.co.za> wrote in message
> news:8gfv7i$v4j$1@va.php.net...
> > I am trying to use sessions with php4.0.0 and getting no joy.. an e.g..
> >
> > <p>Before</p>
> >
> > <?
> > session_start();
> >
> > session_register("mycount");
> >
> > $mycount++;
> >
> > echo("You have visited $mycount times");
> >
> > session_close();
> > ?>
> >
> > <p>After</p>
> >
> > The example above, with or without the session_close(); function does
not
> > return anything more than <p>before</p> in the viewed source of the
> executed
> > page. I have tried playing with php.ini and the only thing that effects
it
> > is the session.auto_start booleon, which, when turned on doesn't display
a
> > page, but the session variable is created in my designated temp file.
> >
> > The question is, does php4 support sessions on NT and how. Is their an
> > example of a php.ini file showing how to do this?
> >
> > Many thanks in advance for any input you or your team could supply.
> >
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>