You are here: Session id keeps changing Only when using session.cookie_secure = 1 « PHP Programming Language « IT news, forums, messages
Session id keeps changing Only when using session.cookie_secure = 1

Posted by DC on 01/20/06 16:42

It seams that I'm only having my session_id problem when "session.cookie_secure" is true.

to emulate what is happening, I ran the following from the command line:
(the webdeveloper plugin for firefox confirms the same thing is happening in the browser)
"sudo -u apache php /path/to/website/session_test.php"





When session.cookie_secure = true ( Session ID changes every time i refresh the page)
I get this:
Content-type: text/html
Set-Cookie: PHPSESSID=2936ca56baebc8ef01e0fed93cf15a82; path=/; secure
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Thu, 19 Jan 2006 17:35:44 GMT


When session.cookie_secure = false (Session ID remains the same like it should when refreshing the page)
I get this:
Content-type: text/html
Set-Cookie: PHPSESSID=0439f6dc5efab92a2b4c764a3d1ac077; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: private, max-age=10800, pre-check=10800
Last-Modified: Thu, 19 Jan 2006 17:35:44 GMT




Also, whats up with that date???

 

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

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