ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Q: работают ли сессии в нашем PHP?
@ 2008-08-21 13:26 Slava Semushin
  2008-08-21 14:16 ` Veaceslav Grecea
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Slava Semushin @ 2008-08-21 13:26 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Здравствуйте!

Третий день разбираюсь почему у меня не работает авторизация с помощью
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-22  5:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-21 13:26 [sisyphus] Q: работают ли сессии в нашем PHP? Slava Semushin
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

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