Re: How to use PHP to delete cookies when browser is close.

2009-09-09 Thread Brendon Kozlowski (Realm)

PHP is primarily a web centric language.  Once the browser is closed,
there really isn't a way to clear the cookies of a visitor, as there
is no further way to interact with the web site, and thus the server
that runs the PHP code.

If you are thinking more along clearing your OWN cookies after you
close your browser, you'd still have to manually configure your
browser to run a script (locally) to delete your temporary internet
files (or a specific one), and run PHP as a CLI on your own computer.

However, I'm pretty sure what you're asking about is related more to
my first paragraph, which means - I'm afraid - that it is not
possible.

@hellfish: If you took the amount of time to write that out, you could
have just as easily taken the time to answer more respectfully,
regardless of whether it was a joke or not.

On Sep 9, 7:26 am, hellfish  wrote:
> Is this for real?!
>
> On 9 Set, 10:45, arif hossen  wrote:
>
> > Dear all ,
>
> > Please help me.
> > How to use CAKEPHP to delete cookies when browser is close.
>
> > --
> > Regards,
> > Mohammad Arif Hossen
> > Software Enginner
> > Epsilon Consulting and Development Services(ECDS)www.ecds-tech.com
> > +88 01714355911
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to use PHP to delete cookies when browser is close.

2009-09-09 Thread Kau-Boy

What hellfish wanted to say: YOU CAN'T.
Closing the browser doesn't affect PHP so the only way to do this is
IN the browser.

But why so complicated. Just use a session. A session usually stores
user information in a text file on the server. To recognize a user,
the browser will store a session cookie in the users browser. Closing
the session will delete the cookie after the expire timevalue. Or you
can simply use the generic PHP function set_cookie (http://www.php.net/
manual/de/function.setcookie.php) if a expire of 0 which is default.
In this case closing the browser will delete the cookie.

On Sep 9, 11:45 am, arif hossen  wrote:
> Dear all ,
>
> Please help me.
> How to use CAKEPHP to delete cookies when browser is close.
>
> --
> Regards,
> Mohammad Arif Hossen
> Software Enginner
> Epsilon Consulting and Development Services(ECDS)www.ecds-tech.com
> +88 01714355911
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to use PHP to delete cookies when browser is close.

2009-09-09 Thread hellfish

Is this for real?!

On 9 Set, 10:45, arif hossen  wrote:
> Dear all ,
>
> Please help me.
> How to use CAKEPHP to delete cookies when browser is close.
>
> --
> Regards,
> Mohammad Arif Hossen
> Software Enginner
> Epsilon Consulting and Development Services(ECDS)www.ecds-tech.com
> +88 01714355911
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to use PHP to delete cookies when browser is close.

2009-09-09 Thread arif hossen
Dear all ,

Please help me.
How to use CAKEPHP to delete cookies when browser is close.

-- 
Regards,
Mohammad Arif Hossen
Software Enginner
Epsilon Consulting and Development Services(ECDS)
www.ecds-tech.com
+88 01714355911

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---