Date: 01/05/01
- Next message: Max A. Derkachev: "Re[2]: [phplib] session"
- Previous message: abdel: "Re: [phplib] session"
- Next in thread: Max A. Derkachev: "[phplib] Re: Problem with newly commited user4.inc"
- Reply: Max A. Derkachev: "[phplib] Re: Problem with newly commited user4.inc"
- Reply: Max A. Derkachev: "Re: [phplib] Problem with newly commited user4.inc"
- Reply: Max A. Derkachev: "Re: [phplib] Problem with newly commited user4.inc"
- Maybe reply: Marko Kaening: "Re: [phplib] Problem with newly commited user4.inc"
- Maybe reply: Marko Kaening: "Re[2]: [phplib] Problem with newly commited user4.inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Privet Max,
good to hear from you so soon and to see action on the cvs immediately! ;)
> Hello Marko,
> Thanks to your bug report.
> Note that session4.inc is not mine, the author is Teodor Cimpoesu. My
> extension that works with CT_* classes to store session data is
> session4_custom.inc in the php/session directory.
First of all: of course my question was not related to TC's file, it's
just a typo since I did that in a hurry! Of course I worked with your
implementation session4_custom.inc!
> The module is now fixed in cvs. There would be updates soon, so look
> for the latest version at
> http://phplib.netuse.de/cgi/cvsweb.cgi/php-lib/php/session/session4_custom.inc
> I've also commited user4.inc with new User class that should work with
> session4* classes.
> Check it out if you are interested.
I did check that out and it seems to work now without this strange
repetition of session id's in the query string.
Right now I noticed that session/user data is stored in php4 manner and
not the way it was before in phplib3 (I mean as clear php code). In
principle this is okay, I think. But at least for me it causes a little
problem now: I cannot simply use the same tables if I switch between old
phplib3 or Brian's phplib4-extension and your approach. I this is a
drawback of the simplyfication by leaving the data in php4 style. but
okay, if you look at speed it's better certainly.
As soon as I also try to use your new user4.inc I get the follwoing error
messages on each page I try to display:
-------------------------------------------------------------------------
Warning: Variable passed to reset() is not an array or object in
/usr/local/httpd/php/user4_custom.inc on line 119
Warning: Variable passed to each() is not an array or object in
/usr/local/httpd/php/user4_custom.inc on line 120
Warning: Illegal offset type in /usr/local/httpd/php/user4_custom.inc on
line 38
-------------------------------------------------------------------------
It looks like here is the same problem described above, isn't it? Your
user4.inc simply doesn't work for me at all... What is going on?
I found the definition
var $vars_array = 'PHPLIB_USER_VARS';
in the user4.inc.
But I didn't see a connection of this variable to anything else in the
whole phplib. Maybe that's the problem? The error messages up there
actually try to access $vars_array and maybe that's the cause of
everything? But I have to admit I had only a very short look at it, so I
might be completely wrong with that.... I am sorry in advance!
Well I just started with my active_sessions table from zero (emptyness I
mean) and the only string in the User value is the following line:
-------------------------
Exp_User:b:0;
-------------------------
that's all. Nothing else was actually saved. Well, this is certainly
caused by the problems occuring everytime you call the user4_custom.inc.
OK, that's all for now, Max.
I hope this helps to find the flaw in the code. I think I better leave
that to you, I don't have the time to REALLY understand how it works in
detail and you are surely much quicker than I in debugging this.
Hope to hear from you some time. Uspehi! ;)
Poka,
Marko
--
O _ O
0 0
------------------m-\o/-m------------------------------------------
Dr. Marko K"aning Tel/Fax: +49-3834 554 442 / -3834 554 301
INP Greifswald email : kaening <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Max A. Derkachev: "Re[2]: [phplib] session"
- Previous message: abdel: "Re: [phplib] session"
- Next in thread: Max A. Derkachev: "[phplib] Re: Problem with newly commited user4.inc"
- Reply: Max A. Derkachev: "[phplib] Re: Problem with newly commited user4.inc"
- Reply: Max A. Derkachev: "Re: [phplib] Problem with newly commited user4.inc"
- Reply: Max A. Derkachev: "Re: [phplib] Problem with newly commited user4.inc"
- Maybe reply: Marko Kaening: "Re: [phplib] Problem with newly commited user4.inc"
- Maybe reply: Marko Kaening: "Re[2]: [phplib] Problem with newly commited user4.inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

