Re: Re: Auth Problem ...
| From: | Martin Jansen | Date: | Tue, 02 Apr 2002 10:10:26 +0000 |
| Subject: | Re: Re: Auth Problem ... | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5160@lists.php.net to get a copy of this message | ||
On Tue, 02 Apr 2002 11:48:41 +0200, Luc Saint-Elie wrote:
>At 07:38 26/03/02 +0100, Martin Jansen wrote:
>>It looks like there are some problems with PEAR::Auth & 4.1.2,
>>eventhough I can't reproduce them :-(. I'll try to find a fix
>>for that later this week.
>
>
>On a test install (win 98 Apache 1.3.24 / php 4.1.2) if I do the very
>simple following (files content at the end of this message)
>
>1) First use : authentication works ok no problem
> content of the session file : !auth
> but I can't access Auth session variables in the following pages
> if (isset($_SESSION)) { print_r( $_SESSION ); } gives an empty array();
When going to see_session.php right after the login, I get:
Array ( [auth] => Array
( [registered] => 1
[username] => martin
[timestamp] => 1017743993
[idle] => 1017743993
)
)
which is absolutely right in this situation.
>2) if I add another session variable ($me = 'luc') when I get back to the
>index page I get a
> "Warning: Undefined index: auth in T:\EasyPHP\www\include\Auth\Auth.php
>on line 513" on the index.php file
> and I can't access Auth session variables in the following pages
> if (isset($_SESSION)) { print_r( $_SESSION ); } gives a value for
>$_SESSION['me'] only
> content of the session file : !auth|me|s:3:"luc"
Unfortunately I can't reproduce this behaviour on Linux either with
PHP 4.3.0-dev or PHP 4.1.2 :-(.
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/