You are here: Re: how to declare a cookie that will destroy after browser is closed « PHP Programming Language « IT news, forums, messages
Re: how to declare a cookie that will destroy after browser is closed

Posted by Erwin Moller on 01/31/07 08:46

Amar wrote:

> Hi all,
>
> I want to use a cookie that will destroy after closing the
> browser, in my application.
> I am able to destroy my cookie after log out,but don't know how to
> destroy this when I will close the browser.
> Please help me.
>
> Amar

Hi Amar,

Change in php.ini, or use ini_set().
Look for:

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0


Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация