ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Konstantin A. Lepikhov" <lakostis@unsafe.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Сессия php после redirect
Date: Thu, 18 Sep 2008 01:26:20 +0400
Message-ID: <20080917212620.GA3789@lks.home> (raw)
In-Reply-To: <99785b730809120015s3a2cd7e3m5a681a78c8002b13@mail.gmail.com>

Hi Yury!

Friday 12, at 10:15:43 AM you wrote:

> Г
> 
> 12 сентября 2008 г. 1:07 пользователь Rinat Bikov <bikoz.r@gmail.com> написал:
> > Здравствуйте, уважаемые!
> > Имеется такая ситуация:
> > apache2-mod_php5-5.2.7.20080627-alt1
> > apache2-2.2.9-alt10
> > В php.ini присутствует следующая строчка:
> > register_globals = On
> >
> > В итоге если в одном PHP файле сохранить что-либо в сессии
> > и сделать редирект на другую страницу, то на другой
> > странице всё сохранённое в сессии теряется.
> >
> > session_start, session_write_close используются.
> >
> > Гуглил по этому поводу, русскоязычных тредов не нашёл,
> > а англоязычные треды по этому поводу есть, только
> > решения также пока не увидел (если не считать использования
> > свежего CodeIgniter).
> >
> > Кто-нибудь сталкивался с этим?
> Где хранится идентификатор сессии? Если не в куках в GET, то
> естественно его при редиректе нужно учитывать.
Поставить 

session.cookie_path = / (по-умолчанию там /tmp)

Это баг упаковки свежего php5.

-- 
WBR et al.


      reply	other threads:[~2008-09-17 21:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12  7:15 ` Yury Konovalov
2008-09-17 21:26   ` Konstantin A. Lepikhov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080917212620.GA3789@lks.home \
    --to=lakostis@unsafe.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git