Re: Auth class question (preserve user authentication across scripts)
| From: | Martin Jansen | Date: | Thu, 21 Mar 2002 10:13:02 +0000 |
| Subject: | Re: Auth class question (preserve user authentication across scripts) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1011@lists.php.net to get a copy of this message | ||
On Thu, 21 Mar 2002 01:06:02 +0100, Wakan wrote:
>So how to enter in another script and re-use the session information create
>by the login script (left.php) ?
You have to ensure, that the session ID is known in modify.php.
Normally, the ID is stored in a cookie on the user-side. If
this does not happen, you need to ensure, that the ID is passed
via the URL. Either use session.use_trans_sid = 1 in your php.ini
or manually add the session ID to each link. For more information
please consult the PHP manual (http://www.php.net/manual/).
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/