🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #220224

Re: Zend framework bez cookies

#220224
From: ant
Date: Wed, 19 Aug 2009 14:32
27 lines
2256 bytes
Peter wrote:
> Próbuję znaleźć rozwiązanie na to, aby coś, co chodzi w oparciu o Zend
> Framework, nie wymagało włączonego cookies. Przecież może zdarzyć się
> sytuacji, że mogą być wyłączone lub nieobsługiwane. Próbowałem ustawiać
> parametry m.in.:
> @ini_set('session.use_cookies', true);
> @ini_set('session.use_only_cookies', false);
> @ini_set('session.use_trans_sid', true);

To ma zmusić Zend'a czy też PHP do tego, by nie używał cookies? ;)

> ale to niewiele daje. W dokumentacji
> http://framework.zend.com/manual/en/zend.session.global_session_management.html#zend.session.global_session_management.configuration_options
> jest napisane, że "boolean use_only_cookies" ... "If this setting is not
> enabled, an attacker can easily fix victim's session ids, using links on
> the attacker's website, such as [...]"
> W takim razie pytanie jak "zmusić" aplikację opartą o Zend Framework-a,
> aby działała bez cookies? No i co z tym bezpieczeństwem wtedy?

A próbowałeś wyłączyć obsługę cookies w przeglądarce?
Co z bezpieczeństwem? Zacytowałeś nawet jeden z istotnych szczegółów
ze strony dokumentacji. Wyłączysz cookies, to gdzie się pojawi session
id?

Sprawdź też czy:
"Wrong: Do not enable PHP's  session.auto_start setting."
"Wrong: Do not use PHP's session_start() function directly."
Technical Details
Message-ID: <h6h2kr$rm3$1@atlantis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <h6f4rs$8mt$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: ant <ant@nowhere.tld>
Newsgroups: pl.comp.lang.php
Subject: Re: Zend framework bez cookies
Date: Wed, 19 Aug 2009 16:32:07 +0200
Organization: TP - http://www.tp.pl/
Lines: 27
Message-ID: <h6h2kr$rm3$1@atlantis.news.neostrada.pl>
References: <h6f4rs$8mt$1@node1.news.atman.pl>
NNTP-Posting-Host: 79.189.151.28
Mime-Version: 1.0
X-Trace: atlantis.news.neostrada.pl 1250692571 28355 79.189.151.28 (19 Aug 2009 14:36:11 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Wed, 19 Aug 2009 14:36:11 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.17 (X11/20080927)
In-Reply-To: <h6f4rs$8mt$1@node1.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit