You are here: session cookies « PHP Programming Language « IT news, forums, messages
session cookies

Posted by Marcus on 11/14/05 08:29

I know that when you start a session in PHP, the "cookie" it creates is
not the same as those that are stored in your browser's temp folder, and
instead is kept in RAM. I am confused because in every session tutorial
I have ever read, the author invariably mentions the 2 main ways of
propagating sessions - through cookies and appended to the URL. The
author also almost always talks about the method being dependent on the
user's preferences, for example whether he/she accepts cookies. I am so
confused because I have tried setting my browser to reject all cookies,
and in php.ini I have session.use_cookies = 1. I have also restarted
apache with both session.use_only_cookies = 1 and with it commented out
as it is by default. In all cases, my scripts always work exactly like
they should. As far as I can tell, if I am explicitly saying that PHP
MUST use cookies to handle my sessions, and I am setting my browser to
reject ALL cookies, my script should not execute successfully. Also,
when I output the contents of $_COOKIE, I get my valid session id,
meaning the cookie is being set. Meanwhile, trying to log in to other
sites on the web that require cookies fails (as it should). If setting
my browser to reject all cookies has no effect, what else could a user
possibly do to make sessions using cookies not work? Thanks a bunch.

 

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

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