Date: 12/16/99
- Next message: Andreas Otto: "Re: [PHPLIB] phplib and phorum"
- Previous message: Kristian Köhntopp: "Re: [PHPLIB] PHP4"
- In reply to: RS: "[PHPLIB] newbie questions on sessions"
- Next in thread: Bryan McGuire: "Re: [PHPLIB] newbie questions on sessions"
- Reply: Bryan McGuire: "Re: [PHPLIB] newbie questions on sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
RS wrote:
> I seem to be having trouble implementing sessions:
> 1. It seems that sessionsID's are created before
> a userID is created. Why would you create a
> session if the user is not authenticated?
You do this to be able to have unauthenticated
sessions. It is also necessary so that we can
remember authentication information between
pages.
> This is
> a problem for my app as I want to track per user
> data on a session basis, and when I expire the
> session, to roll up (compile) that data and store
> it in the user's database.
There is no mechanism in PHPLIB which handles callbacks
to your code when session data is being expired. There
are user variables, though, which are just like session
variables, only that they are kept between sessions
and are bound to user ids.
> 2. Trying to use "reg" to establish self-
> registration, but there are no default handlers
> for function auth_doregister() {} - anyone have
> an example or two?
>
> Does it work?
It does work and it is in production on many sites.
An example for reg mode can be seen on PHPLIBs website.
Ah, and there is documentation and it has examples
for everything. Really. You just have to read it.
Kristian
-- Kristian Koehntopp, Knooper Weg 46, 24103 Kiel, +49 171 2231 811 "Bombay is 250ms from New York in the new world order" - Alan Cox- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Andreas Otto: "Re: [PHPLIB] phplib and phorum"
- Previous message: Kristian Köhntopp: "Re: [PHPLIB] PHP4"
- In reply to: RS: "[PHPLIB] newbie questions on sessions"
- Next in thread: Bryan McGuire: "Re: [PHPLIB] newbie questions on sessions"
- Reply: Bryan McGuire: "Re: [PHPLIB] newbie questions on sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

