Reply to How to set a session cookie with a path?

Your name:

Reply:


Posted by John Drako on 10/11/35 11:53

I need to set a session cookie (expires when the browser closes) with a
path of "/".

Is there a way to do it?

I tried:

setcookie("cookie_name", $cookie_value, "", "/");

and

setcookie("cookie_name", $cookie_value, "0", "/");

and of course none of them worked.

I can't move the page that is setting the cookie to the top level
directory of the site, but I need the cookie to be available to couple
of page there.

Is this doable at all?

TIA

[Back to original 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

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