From: Denis Klimov <zver@altlinux.org>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Q: работают ли сессии в нашем PHP?
Date: Thu, 21 Aug 2008 21:11:28 +0600
Message-ID: <20080821211128.86e353e0.zver@altlinux.org> (raw)
In-Reply-To: <75e139a00808210626w2ff4160dxc5b574c1889d397c@mail.gmail.com>
On Thu, 21 Aug 2008 20:26:07 +0700 Slava Semushin wrote:
> Здравствуйте!
>
> Третий день разбираюсь почему у меня не работает авторизация с помощью
> Zend_Auth, сегодя понял, что Zend Framework тут не причем.
> Удалось выяснить, что у меня в PHP вообще сессии не работают. Вот два
> файла, которые можно использовать как test case, проверьте кто-нибудь,
> пожалуйста, и скажите у вас они работают или нет?
>
> test1.php:
>
> <?php
> session_start();
> $_SESSION['user']='Username';
> header("location: test2.php");
> ?>
>
> test2.php:
> <?php
> session_start();
> echo $_SESSION['user'];
> ?>
>
> У меня после запуска test1.php выдаётся ошибка:
>
> Notice: Undefined index: user in /var/www/html/ses/test2.php on line 4
>
> Помогите, пожалуйста, разобраться в чем проблема. На соседней FreeBSD
> этот код работает. Сессии у меня включены, апач в каталог с файлами
> писАть может. В логе ничего интересного.
Попробуй поставить
session.cookie_path = /
--
Denis Klimov
zver
next prev parent reply other threads:[~2008-08-21 15:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 13:26 Slava Semushin
2008-08-21 14:16 ` Veaceslav Grecea
2008-08-21 17:03 ` Slava Semushin
2008-08-21 15:11 ` Denis Klimov [this message]
2008-08-22 5:06 ` [sisyphus] [SOLVED] " Slava Semushin
2008-08-22 4:25 ` [sisyphus] " Sergey Kurakin
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=20080821211128.86e353e0.zver@altlinux.org \
--to=zver@altlinux.org \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git