Re: Session management module - thoughts
| From: | Sascha Schumann | Date: | Fri, 28 May 1999 18:07:25 +0000 |
| Subject: | Re: Session management module - thoughts | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6192@lists.php.net to get a copy of this message | ||
On Fri, May 28, 1999 at 01:52:53PM -0400, Jim Winstead wrote:
> On May 28, Zeev Suraski wrote:
> > I'm not sure I'm following you, but what I have in mind is something every
> > John Doe newbie user can handle. Something along the lines of:
> >
> > session_start();
>
Ok, basic API:
========================================================================
int session_start(string zone_path [, string CookieName [, string Id]]);
This does the basic setup, imports previously registered variables, sends out
cookies and calls the garbage collection randomly.
where
- zone_path is some path in your filesystem (I cannot think of a sensible
default here. anyone?)
- CookieName is the name of the cookie session_start() checks for. If it is
set in the current context, we use the content of it as session id,
otherwise we create a new session id and send out a Set-Cookie HTTP header.
Defaults to "PHPSESSID"
- Id overwrites the previously choosen session id
========================================================================
session_destroy(int session_id);
This destroys the session (e.g. for logout).
========================================================================
session_register(int session_id, string varname);
Registers varname for being stored on page shutdown.
--
Regards,
Sascha Schumann
Consultant
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net