Accessing the cookie with every page load is usually to reset the expiry
time. In this way the cookie will expire some time after the last page
access, not sometime after it was first created.
--
Tony Marston
http://www.tonymarston.net
"Pedro Graca" <hexkid@hotpop.com> wrote in message
news:slrnco28mp.knd.hexkid@ID-203069.user.uni-berlin.de...[color=blue]
> Henry Hartley wrote:[color=green]
>> I've got a PHP system working on a development server (Windows
>> 2000/IIS5/PHP 4.3.3) but it doesn't seem to be working quite right on
>> the testing server (same except PHP 4.2.3). I upgraded the PHP on the
>> testing server but that didn't seem to make any difference. One
>> difference I noticed is that on the dev server, the session cookie is
>> modified on EVERY page load.[/color]
>
> ???? And that is good? ?!?!?!?!
>
> one session <===> one cookie
> one cookie <===> one session
>
> If you get different cookies that means php is dealing with different
> sessions.
>[color=green]
>> On the testing server the cookie gets
>> created alright but it doesn't seem to be touched after that (and yes,
>> I checked to be sure the PHP code is the same on the two machines).[/color]
>
> Isn't this what you want? ?!?!?!?!
>[color=green]
>> Is this controlled by a setting in php.ini? If so, I cannot figure
>> out which one.[/color]
>
> Check that the directory specified in "session.save_path" really exists.
>[color=green]
>> Is it controlled by IIS in some way? Again, I cannot
>> find anything that tells me where.[/color]
>
> Check the permission for the directory.
>[color=green]
>> Since the development server is
>> working,[/color]
>
> is it? ?!?!?!?!
>[color=green]
>> I'd like that behavior (modifying the cookie on every page
>> load) to be implemented on the test server but cannot figure out how.[/color]
>
> Why?
> Why do you want a cookie that changes on *every* page load?
> Perhaps you are trying something for which cookies may not be the best
> option?
>
> --
> USENET would be a better place if everybody read: | to mail me:
> simply |
>
http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this
> post, |
>
http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain
> text |
>
http://www.expita.com/nomime.html | and *NO*
> attachments. |[/color]