From: "Slava Semushin" <slava.semushin@gmail.com> To: "ALT Linux Sisyphus discussions" <sisyphus@lists.altlinux.org> Subject: [sisyphus] Q: работают ли сессии в нашем PHP? Date: Thu, 21 Aug 2008 20:26:07 +0700 Message-ID: <75e139a00808210626w2ff4160dxc5b574c1889d397c@mail.gmail.com> (raw) Здравствуйте! Третий день разбираюсь почему у меня не работает авторизация с помощью 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 этот код работает. Сессии у меня включены, апач в каталог с файлами писАть может. В логе ничего интересного. Вот версии пакетов: php5-mysqli-5.2.7.20080627-alt1 php-base-2.3-alt1 apache-mod_php5-5.2.7.20080627-alt1 php5-5.2.7.20080627-alt1 php5-suhosin-0.9.24-alt1 php5-devel-5.2.7.20080627-alt1 rpm-build-php5-5.2.7.20080627-alt1 php5-libs-5.2.7.20080627-alt1 Заранее большое спасибо! -- + Slava Semushin | slava.semushin @ gmail.com + ALT Linux Team | php-coder @ altlinux.ru
next reply other threads:[~2008-08-21 13:26 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-08-21 13:26 Slava Semushin [this message] 2008-08-21 14:16 ` Veaceslav Grecea 2008-08-21 17:03 ` Slava Semushin 2008-08-21 15:11 ` Denis Klimov 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=75e139a00808210626w2ff4160dxc5b574c1889d397c@mail.gmail.com \ --to=slava.semushin@gmail.com \ --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