Cookies and PHP

T

Terame

Guest
Hi there,

My first post here :)

I'm helping out a friend with their web site. Normally I refer all the difficult brain teasers to my trusty geeks, but this time, none of them speak Mac....

So my question:
Is there someone here that can help with a cookie handling problem with a php/MySQL application?

We're having problems with a user who is sometimes remembered, and sometimes she receives a blank screen. This is even after looking up Mac os 9 and ie5 compatitbility issues, but we're guessing that we're missing something.

Any help MOST welcome, as we'd like the site to not descriminate against Mac os 9 users.
 
Joined
Jun 11, 2003
Messages
4,915
Reaction score
68
Points
48
Location
Mount Vernon, WA
Your Mac's Specs
MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
Usually it has to do with the date in the cookie, look up the type of date the cookies are supposed to use. Actually do it this way

$one_year = time() + 60*60*24*365;
setcookie('oatmeal', 'yum', $one_year, '/', '', 0);

That should do it for you...
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top