you can use php but you need to put a value to your cookie, and put a
positive date :)
setcookie('init', 'tadaa', time()+3600);
and to read it:
echo (isset($_COOKIE['init']))?$_COOKIE['init']:false:

if you leave setcookie('init','',time()-3600); like this, you actually
unset the cookie :)

R.
ps: ask google:) you'll find thousands of how-to for PHP...

2010/6/11, Matt <[email protected]>:
> Hm, well, I've been trying to use php code to do it actually.
>
> <?php
> setcookie("isin", "", time() - 3600);
> ?>
>
> Maybe in order to do this I need to set the cookie via javascript
> instead.
>
> On Jun 11, 7:17 am, Remi Grumeau <[email protected]> wrote:
>> Strange... I ve used old-style js cookies code and it works. Can you
>> copy paste your cookies related code?
>>
>> R.
>>
>> 2010/6/11, Matt <[email protected]>:
>>
>>
>>
>> > Hi, I'm developing an app for the iphone that requires as much screen
>> > real-estate as possible. This is why I'm using the meta tag apple-
>> > mobile-web-app-capable, to get the app to go "full screen".  In doing
>> > this, I can't seem to store cookies. This is particularly annoying for
>> > the users, only because I make them log in using basic authentication.
>> > When I can't save the cookie to the browser to bypass the
>> > authentication for subsequent logins, they see the authentication box
>> > every time. In some searching around I've found some people talking
>> > about it, but no one has really indicated that it's a bug, or it's a
>> > "feature" or whatever.  Has anyone come across this, and have you
>> > found an answer/workaround?  Thanks!
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "iPhoneWebDev" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> >http://groups.google.com/group/iphonewebdev?hl=en.
>>
>> --
>> Envoyé avec mon mobile
>>
>> Remi Grumeau
>> tel: (0)663 687 206http://www.remi-grumeau.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "iPhoneWebDev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/iphonewebdev?hl=en.
>
>

-- 
Envoyé avec mon mobile


Remi Grumeau
tel: (0)663 687 206
http://www.remi-grumeau.com

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to