[UPHPU] MySQL PHP 5 Session-Based Hit Counter
John David Anderson
uphpu at johndavidanderson.net
Mon Jan 22 09:32:13 MST 2007
On Jan 22, 2007, at 9:26 AM, Brandon Stout wrote:
> Jacob Wright wrote:
>> Hey Brandon,
>> I'm not getting any cookies set on any of your pages (i.e. http://
>> bstout.securesites.net isn't working for me either). The headers
>> being sent to my browser are setting the cookie path to /tmp which
>> says if I'm at http://mscis.org/tmp then the cookie will be valid.
>> Make sure your cookie path is set to a plain ol' slash (/).
>> Set-Cookie: PHPSESSID=8oduagb1i4s0lu4r2olkrnkc97; path=/tmp
>> Hope this solves it!
>> Jacob Wright
>> Within Code LLC
> I thought the path was for the server-side cookie. I've set the
> path to /, but it's still incrementing every refresh. It seems
> both sites increment every refresh now. Any other ideas?
> Also, isn't the point of a session to avoid client-side cookies?
The client side cookie only keeps a session id. That id points to all
the session data on the server.
More information about the UPHPU