phplib-users Mailing List for PHPLIB (Page 69)
Brought to you by:
nhruby,
richardarcher
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(106) |
Sep
(99) |
Oct
(44) |
Nov
(97) |
Dec
(60) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(56) |
Feb
(81) |
Mar
(134) |
Apr
(69) |
May
(106) |
Jun
(122) |
Jul
(98) |
Aug
(52) |
Sep
(184) |
Oct
(219) |
Nov
(102) |
Dec
(106) |
| 2003 |
Jan
(88) |
Feb
(37) |
Mar
(46) |
Apr
(51) |
May
(30) |
Jun
(17) |
Jul
(45) |
Aug
(19) |
Sep
(5) |
Oct
(4) |
Nov
(12) |
Dec
(7) |
| 2004 |
Jan
(11) |
Feb
(7) |
Mar
|
Apr
(15) |
May
(17) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
(8) |
Oct
(6) |
Nov
(21) |
Dec
(13) |
| 2005 |
Jan
(4) |
Feb
(3) |
Mar
(7) |
Apr
(7) |
May
|
Jun
(11) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
| 2006 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(5) |
| 2007 |
Jan
(15) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(9) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
(3) |
Jul
(1) |
Aug
(19) |
Sep
(2) |
Oct
|
Nov
|
Dec
(6) |
| 2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
|
From: John D. <jpd...@cc...> - 2002-03-20 16:01:40
|
I wonder whether the following patch (or something like it) would be an improvement:
--- ct_shm.inc Wed Jul 12 14:22:33 2000
+++ ct_shm.inc.new Wed Mar 20 08:50:54 2002
@@ -44,6 +44,8 @@
function ac_newid($str, $name) {
for($i = 1; $i <= $this->max_sessions &&
(@shm_get_var($this->shmid, $i) != false); $i++);
+ if($i > $this->max_sessions)
+ $this->ac_halt("no sessions available");
$id = $i."_".$str;
$this->ac_store($id, $name, "");
return $id;
My MUA broke the whitespace, sorry.
John
|
|
From: John D. <jpd...@cc...> - 2002-03-20 16:01:32
|
> From: "Layne Weathers" <la...@if...> > Date: Tue, 19 Mar 2002 13:56:20 -0600 > > Ahhh, you're right - sorry about jumping to conclusions. My small sites have > always fared well with database storage - I don't think I've even read > ct_shm.inc before. > My site is ~20K users. Is that "small"? I'm not using DB storage because I'm not really comfortable with MySQL and I've found that PostgreSQL generates errors about inserting a duplicate key into a unique index. Is this fixed in the latest PHPlib? I notice you're using PostgreSQL sequences to generate unique ID's. Thanks, John |
|
From: Layne W. <la...@if...> - 2002-03-19 19:53:50
|
> You should read ct_shm.inc again. I assume this was intended > to prevent session stealing. Ahhh, you're right - sorry about jumping to conclusions. My small sites have always fared well with database storage - I don't think I've even read ct_shm.inc before. >> The PHPLib files in Horde 1.2.7 are 2-3 years old. Download >> PHPLib 7.4pre1 from SourceForge and replace the files in >> Horde's phplib directory (except local.inc and prepend.php3) >> with the files from the new PHPLib. > > I'll try this, but I suspect the answer lies in tuning the SHM > parameters in local.inc. That sounds like a pretty fair guess - hopefully someone with some experience can shed some light on this. Layne Weathers Ifworld Inc. |
|
From: John D. <jpd...@cc...> - 2002-03-19 19:18:03
|
Layne Weathers wrote: > > > I'm using the phplib version that comes with IMP 2.2.7. My users are > > complaining about bogus "security stop" messages. What do I need to > > tune to fix this? Is my max_sessions too small? > > PHPLib does not have any "security stop" messages that I have seen, so this You should read ct_shm.inc again. I assume this was intended to prevent session stealing. > must be coming from IMP or Horde. Although the problem might stem from > PHPLib, the users of the Horde and IMP software packages might have a better > idea on this. > > The PHPLib files in Horde 1.2.7 are 2-3 years old. Download PHPLib 7.4pre1 > from SourceForge and replace the files in Horde's phplib directory (except > local.inc and prepend.php3) with the files from the new PHPLib. If that does I'll try this, but I suspect the answer lies in tuning the SHM parameters in local.inc. > not solve your problem you will have to investigate Horde and IMP. > > Layne Weathers > Ifworld Inc. |
|
From: Layne W. <la...@if...> - 2002-03-19 17:12:17
|
> I'm using the phplib version that comes with IMP 2.2.7. My users are > complaining about bogus "security stop" messages. What do I need to > tune to fix this? Is my max_sessions too small? PHPLib does not have any "security stop" messages that I have seen, so this must be coming from IMP or Horde. Although the problem might stem from PHPLib, the users of the Horde and IMP software packages might have a better idea on this. The PHPLib files in Horde 1.2.7 are 2-3 years old. Download PHPLib 7.4pre1 from SourceForge and replace the files in Horde's phplib directory (except local.inc and prepend.php3) with the files from the new PHPLib. If that does not solve your problem you will have to investigate Horde and IMP. Layne Weathers Ifworld Inc. |
|
From: John D. <jpd...@cc...> - 2002-03-19 16:43:05
|
I'm using the phplib version that comes with IMP 2.2.7. My users are complaining about bogus "security stop" messages. What do I need to tune to fix this? Is my max_sessions too small? Thanks, John |
|
From: Martin L. <ph...@be...> - 2002-03-19 09:49:18
|
Bob Bowker <bo...@iN...> writes: > I finally spent some time over the weekend getting phpLib4 and > specifically menu.inc to work on a PHP4 test server ... and I'm curious: > has anyone actually implemented menu in a useful way? Yes, i.e. http://www.better-com.de > I can think of a few applications of the class that seem nice enough, > but so far I can't conceive of the killer app for this class > ... anybody up and running with something that you want to show off? menu.inc or menu3.inc is part of _every_ larger site we develop here. It's a really handy piece of code and enables us to show our customers that it's possible to have JS-free pages with effects that are at least identical (so far as dynamic menus are concerned). With the menu-class you are able to build pages that behave similar to pages with JS-driven menus (i.e. http://www.webreference.com/dhtml/hiermenus/) but you don't have to deal with the different manner IE/NS et al handle your JS-Code. One reason for the acceptance of JS-free pages here in Germany is an older statement of http://www.bsi.de (a german authority responsible for IT-security) which recommend all users to disable JS. Martin |
|
From: nathan r. h. <na...@ds...> - 2002-03-18 18:57:24
|
On Mon, 18 Mar 2002, Bob Bowker wrote: > Hi -- > > I finally spent some time over the weekend getting phpLib4 and specifically > menu.inc to work on a PHP4 test server ... and I'm curious: has anyone > actually implemented menu in a useful way? I can think of a few > applications of the class that seem nice enough, but so far I can't > conceive of the killer app for this class ... anybody up and running with > something that you want to show off? the old phplib site used the meu class. It's very handy to have an automated menu that just pops everything up right. It's also a pain to configure and a little inflexible in presentation. The current menu class in CVS has a succssor written by Ulf Wendel, chekc it out at his website. > > Just in passing: I agree with the person who said the CVS and SourceForge > are a mess ... I've been working with phpLib for almost 3 years now, and it > took me a couple of hours just to find the pieces I need for a PHP4 > installation - I had it up and running in literally 5 minutes after I > identified which scripts were necessary, but the slogging through the CVS > was depressing. > Depressing. Good word for it. I really wanna fix it but just haven't had the time (I know I know.. Story of my life...) -n ------ nathan hruby na...@ds... ------ |
|
From: Bob B. <bo...@iN...> - 2002-03-18 18:50:31
|
Hi -- I finally spent some time over the weekend getting phpLib4 and specifically menu.inc to work on a PHP4 test server ... and I'm curious: has anyone actually implemented menu in a useful way? I can think of a few applications of the class that seem nice enough, but so far I can't conceive of the killer app for this class ... anybody up and running with something that you want to show off? Just in passing: I agree with the person who said the CVS and SourceForge are a mess ... I've been working with phpLib for almost 3 years now, and it took me a couple of hours just to find the pieces I need for a PHP4 installation - I had it up and running in literally 5 minutes after I identified which scripts were necessary, but the slogging through the CVS was depressing. Bob. |
|
From: Layne W. <la...@if...> - 2002-03-18 18:49:25
|
> " Note: PHPLib now uses (as of 7.4) non-persistent > connections by default > in the non-Oracle db interfaces. The majority of PHPLib users are > operating in a virtual hosting environment where persistent > connections > eat up memory at a horrifying rate. For web servers that only > connect to > one Host/Username/Password, the persistent connections can be > enabled by > setting the $PConnect variable in local.inc's database > extension class. " > > http://www.sanisoft.com/phplib/manual/DB_SqlAddedInfo.php > > I couldn't find evidence in this in the code I installed from > phplib-7.4-pre1.tar.gz. Correct. I checked the changes into CVS late last week. Layne Weathers Ifworld Inc. |
|
From: Joe S. <jo...@be...> - 2002-03-18 18:41:43
|
Answering my own question. I see it's in cvs. thanks Layne. On Mon, Mar 18, 2002 at 12:36:52PM -0600, Joe Stewart wrote: > Are the online docs at sanisoft correct with regard to persistent > connections? > > " Note: PHPLib now uses (as of 7.4) non-persistent connections by default > in the non-Oracle db interfaces. The majority of PHPLib users are > operating in a virtual hosting environment where persistent connections > eat up memory at a horrifying rate. For web servers that only connect to > one Host/Username/Password, the persistent connections can be enabled by > setting the $PConnect variable in local.inc's database extension class. " > > http://www.sanisoft.com/phplib/manual/DB_SqlAddedInfo.php > > I couldn't find evidence in this in the code I installed from > phplib-7.4-pre1.tar.gz. > > Joe > |
|
From: Joe S. <jo...@be...> - 2002-03-18 18:33:32
|
Are the online docs at sanisoft correct with regard to persistent connections? " Note: PHPLib now uses (as of 7.4) non-persistent connections by default in the non-Oracle db interfaces. The majority of PHPLib users are operating in a virtual hosting environment where persistent connections eat up memory at a horrifying rate. For web servers that only connect to one Host/Username/Password, the persistent connections can be enabled by setting the $PConnect variable in local.inc's database extension class. " http://www.sanisoft.com/phplib/manual/DB_SqlAddedInfo.php I couldn't find evidence in this in the code I installed from phplib-7.4-pre1.tar.gz. Joe |
|
From: nathan r. h. <na...@ds...> - 2002-03-18 18:32:14
|
On Mon, 18 Mar 2002, Joe Stewart wrote: > > Can anyone say definitively if this is fixed in phplib-7.4-pre1 or not? > Methinks not, as Layne just checked in a patch for it. Will try to push out a pre2 soon. Those of use with CVS access are encouraged to stomp some of the current bugs :) -n ------ nathan hruby na...@ds... ------ |
|
From: Alexander M. <am...@si...> - 2002-03-18 18:31:52
|
Hi, i checked the session4. inc as u said but there seemes to be a problem. No session data is written to the db. Can u tell me how to fix the problem ? Thanks Alex ----- Original Message ----- From: "Matt Williams" <li...@ye...> To: "Alexander Meis" <am...@si...> Sent: Sunday, March 17, 2002 3:46 PM Subject: Re: [Phplib-users] phplib session4 database > On Sunday 17 March 2002 12:09, Alexander Meis wrote: > > > i am looking for a phplib session class which uses php4 sessions stored in > > the > > active_sessions table in the database. > > I found the session4_custom in the cvs but i can't get it running. > > Does someone have an running class for me ? > > > > Greetings > > to use the session4_custom you need also to get the session4.inc file from > the session folder. > > Do not use the session4.inc from the phplib4 folder it is not the same thing. > > matt > > |
|
From: Joe S. <jo...@be...> - 2002-03-18 18:24:02
|
On Mon, Mar 18, 2002 at 12:01:42PM -0600, Layne Weathers wrote:
> > Hi phplib-users,
> >
> > I'm using PhpSlash as framework for my application.
> > (thanks for the tip in this list ;-)
> >
> > Now, I have an error on every page with the description
> > Fatal error: Call to a member function on a non-object
> > in c:\dipl\phplib\php\page.inc on line 68.
> >
> > I checkt nearly erverything around but the error ist
> > still on botton on every page, caused from the final
> > page_close on the page.
> >
> > The application ist however full functioning...
>
>
> I'm going to guess that PHPSlash does not use the user class and that you
> have used a variable $user in your code. This bug has been around for a
> while. On line 68 change
> if(isset($user)) {
> to
> if(is_object($user)) {
>
True. phpSlash does not use the user class. The only use of $user is to
provide the DB_Sql/db_mysql.inc a db user name.
http://www.sanisoft.com/phplib/manual/DB_SqlExamples.php
looks to be a phplib variable.
Can anyone say definitively if this is fixed in phplib-7.4-pre1 or not?
>
> Layne Weathers
> Ifworld Inc.
>
>
greetings from a U of A grad.
Joe
|
|
From: nathan r. h. <na...@ds...> - 2002-03-18 18:22:48
|
Correct :)
-n
------
nathan hruby
na...@ds...
------
On Mon, 18 Mar 2002, Layne Weathers wrote:
> > Hi phplib-users,
> >
> > I'm using PhpSlash as framework for my application.
> > (thanks for the tip in this list ;-)
> >
> > Now, I have an error on every page with the description
> > Fatal error: Call to a member function on a non-object
> > in c:\dipl\phplib\php\page.inc on line 68.
> >
> > I checkt nearly erverything around but the error ist
> > still on botton on every page, caused from the final
> > page_close on the page.
> >
> > The application ist however full functioning...
>
>
> I'm going to guess that PHPSlash does not use the user class and that you
> have used a variable $user in your code. This bug has been around for a
> while. On line 68 change
> if(isset($user)) {
> to
> if(is_object($user)) {
>
>
> Layne Weathers
> Ifworld Inc.
>
>
> _______________________________________________
> Phplib-users mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phplib-users
>
|
|
From: Layne W. <la...@if...> - 2002-03-18 17:59:15
|
> Hi phplib-users,
>
> I'm using PhpSlash as framework for my application.
> (thanks for the tip in this list ;-)
>
> Now, I have an error on every page with the description
> Fatal error: Call to a member function on a non-object
> in c:\dipl\phplib\php\page.inc on line 68.
>
> I checkt nearly erverything around but the error ist
> still on botton on every page, caused from the final
> page_close on the page.
>
> The application ist however full functioning...
I'm going to guess that PHPSlash does not use the user class and that you
have used a variable $user in your code. This bug has been around for a
while. On line 68 change
if(isset($user)) {
to
if(is_object($user)) {
Layne Weathers
Ifworld Inc.
|
|
From: nathan r. h. <na...@ds...> - 2002-03-18 17:25:19
|
I hope sthat's a really high traffic site to require spliting into
multiple physical servers. I think it might be overkill but.. what the
hey :) If you're looking for speed, use a shmem partition for session
data. Super fast and if done correctly, the removal of the session data
shouldn't be an issue becasue all your sessions would have closed with the
server shutdown :) (eg: use the user object instead of regurgitating old
sessions or setting a session life time for some unreasonable anout of
time)
Anyway, this is an age old problem that lives in php and conneciton
pooliing, the answer is to have different username / apssword paris for
each different database you wish to access.
You could also poll the correct db, before page_close() but that's (as
stated before) a hack.
-n
------
nathan hruby
na...@ds...
------
On Sat, 16 Mar 2002, Carl Youngblood wrote:
> I've been hosting a site with a hosting service that only let me use one
> database. Now I'm trying to get this site running on my home windows
> machine using FoxServ (a combination PHP/MySQL install package for Windows).
> In anticipation of future database fragmentation, I've split my session
> table into a separate database. When this site goes live commercially I
> intend to have multiple database servers and probably one that is dedicated
> to session data. So my session classes look like this:
>
> class SessionDB extends DB_Sql
> {
> var $Host = 'localhost';
> var $Database = 'session';
> var $User = 'myusername';
> var $Password = 'mypassword';
> }
>
> class Bank_CT_Sql extends CT_Sql
> {
> var $database_class = 'SessionDB'; ## Which database to
> connect...
> var $database_table = 'active_sessions'; ## and find our session
> data in this table.
> }
>
> class Bank_Session extends Session
> {
> var $classname = 'Bank_Session';
>
> var $cookiename = ''; ## defaults to
> classname
> var $magic = 'Umuarama'; ## ID seed
> var $mode = 'get'; ## We propagate session
> IDs with cookies
> var $fallback_mode = 'get';
> var $allowcache = 'no';
> var $lifetime = 259200; ## 0 = do session
> cookies, else minutes
> var $that_class = 'Bank_CT_Sql'; ## name of data storage
> container
> var $gc_probability = 25;
> var $gc_time = 720;
> var $auto_init = '../include/setup.inc';
> }
>
> But when I try to log in I get an error message on the login form page that
> displays after the login form itself. It says:
>
> Database error: Invalid SQL: update active_sessions set
> val='QmFua19TZXNzaW9uOiR0aGlzLT5pbiA9ICcnOyAkdGhpcy0+cHQgPSBhcnJheSgpOyAkdGh
> pcy0+cHRbJ2F1dGgnXSA9ICcxJzsgJHRoaXMtPnB0WydjaGFsbGVuZ2UnXSA9ICcxJzsgJEdMT0J
> BTFNbJ2F1dGgnXSA9IG5ldyBCYW5rX0NoYWxsZW5nZV9BdXRoOyAkR0xPQkFMU1snYXV0aCddLT5
> hdXRoID0gYXJyYXkoKTsgJEdMT0JBTFNbJ2F1dGgnXS0+YXV0aFsndWlkJ10gPSAnZm9ybSc7ICR
> HTE9CQUxTWydhdXRoJ10tPmF1dGhbJ3Blcm0nXSA9ICcnOyAkR0xPQkFMU1snYXV0aCddLT5hdXR
> oWydleHAnXSA9ICcyMTQ3NDgzNjQ3JzsgJEdMT0JBTFNbJ2F1dGgnXS0+YXV0aFsncmVmcmVzaCd
> dID0gJzIxNDc0ODM2NDcnOyAkR0xPQkFMU1snY2hhbGxlbmdlJ10gPSAnZDljNTg3YTQ4YzkwMjA
> wMDU5M2Y1MGUxMTYyNTEwNzEnOyA=', changed='20020316202455' where
> sid='7c2d54a5282d1bc17c8ec19d28b662a7' and name='Bank_Session'
> MySQL Error: 1146 (Table 'bank_user.active_sessions' doesn't exist)
> Session halted.
>
> It looks like it is trying to save session info in the wrong database. But
> I put some debugging code into ct_sql.inc at line 97 just before the query
> tries to get executed to see what database name and host the class is
> actually set to. It is set to "session" and not "bank_user" (which is
> another database on the server). Is this a problem in phplib or in php
> itself? It seems really strange that the DB_Sql class would try to connect
> to the wrong database.
>
> Any ideas or help would be greatly appreciated.
>
> Thanks,
> Carl Youngblood
>
>
> _______________________________________________
> Phplib-users mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phplib-users
>
|
|
From: Tarique S. <ta...@sa...> - 2002-03-18 11:43:52
|
On 18 Mar 2002, Indrajit M wrote: Hello Indrajit, I had asked someone if s/he was from a Windoze background - there was a reason to it. IME people from Windoze background are not used to lateral thinking, or even realising that the information exists there they just have to seek For PHPgem you can grab a copy from (if the original site is still down etc) http://groups.yahoo.com/group/in-phpug/files/ Also there is a file called guidelines.html there - they are the guidelines which I impose on the members of Indian PHP User Group. These guidelines pretty much apply to every maillist. The bottomline is learn how to fish and not how to ask for fish Cheers Tarique > Dear All, > Can any body tell me what is PHPGEM please? If you have any type > of documentation or any URL that directs me to PHPGEM please pass > it to me. I have to implement this in my work as soon as > possible. > Indrajit. > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
|
From: Matt W. <li...@ye...> - 2002-03-18 11:36:29
|
On Monday 18 March 2002 11:20, Richard Archer wrote: > STFW hehe I like that one matt |
|
From: Richard A. <rh...@ju...> - 2002-03-18 11:20:43
|
At 10:56 AM +0000 18/3/02, Indrajit M wrote: >Can any body tell me what is PHPGEM please? STFW http://www.google.com/search?q=PHPGEM ...R. |
|
From: Indrajit M <ind...@re...> - 2002-03-18 10:59:07
|
Dear All, Can any body tell me what is PHPGEM please? If you have any type of documentation or any URL that directs me to PHPGEM please pass it to me. I have to implement this in my work as soon as possible. Indrajit. |
|
From: Tarique S. <ta...@sa...> - 2002-03-17 12:31:31
|
On Sun, 17 Mar 2002, Alexander Meis wrote: Hello Have you taken a look at http://www.sanisoft.com/phplib/manual/php4_sessions.php HTH Tarique > Hi... > > i am looking for a phplib session class which uses php4 sessions stored in > the > active_sessions table in the database. > I found the session4_custom in the cvs but i can't get it running. > Does someone have an running class for me ? > > Greetings > > Alex > > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
|
From: Alexander M. <am...@si...> - 2002-03-17 12:10:21
|
Hi... i am looking for a phplib session class which uses php4 sessions stored in the active_sessions table in the database. I found the session4_custom in the cvs but i can't get it running. Does someone have an running class for me ? Greetings Alex |
|
From: <new...@dk...> - 2002-03-17 08:31:51
|
Cannot help, but:
Yes, I also have this problem! I've "fixed" it for myself in querying
the session table in the proper database before closing with page_close().
This is a bloody hack but works fine for me at the moment. ;-)
Marco
Carl Youngblood wrote:
>I've been hosting a site with a hosting service that only let me use one
>database. Now I'm trying to get this site running on my home windows
>machine using FoxServ (a combination PHP/MySQL install package for Windows).
>In anticipation of future database fragmentation, I've split my session
>table into a separate database. When this site goes live commercially I
>intend to have multiple database servers and probably one that is dedicated
>to session data. So my session classes look like this:
>
>class SessionDB extends DB_Sql
>{
> var $Host = 'localhost';
> var $Database = 'session';
> var $User = 'myusername';
> var $Password = 'mypassword';
>}
>
>class Bank_CT_Sql extends CT_Sql
>{
> var $database_class = 'SessionDB'; ## Which database to
>connect...
> var $database_table = 'active_sessions'; ## and find our session
>data in this table.
>}
>
>class Bank_Session extends Session
>{
> var $classname = 'Bank_Session';
>
> var $cookiename = ''; ## defaults to
>classname
> var $magic = 'Umuarama'; ## ID seed
> var $mode = 'get'; ## We propagate session
>IDs with cookies
> var $fallback_mode = 'get';
> var $allowcache = 'no';
> var $lifetime = 259200; ## 0 = do session
>cookies, else minutes
> var $that_class = 'Bank_CT_Sql'; ## name of data storage
>container
> var $gc_probability = 25;
> var $gc_time = 720;
> var $auto_init = '../include/setup.inc';
>}
>
>But when I try to log in I get an error message on the login form page that
>displays after the login form itself. It says:
>
>Database error: Invalid SQL: update active_sessions set
>val='QmFua19TZXNzaW9uOiR0aGlzLT5pbiA9ICcnOyAkdGhpcy0+cHQgPSBhcnJheSgpOyAkdGh
>pcy0+cHRbJ2F1dGgnXSA9ICcxJzsgJHRoaXMtPnB0WydjaGFsbGVuZ2UnXSA9ICcxJzsgJEdMT0J
>BTFNbJ2F1dGgnXSA9IG5ldyBCYW5rX0NoYWxsZW5nZV9BdXRoOyAkR0xPQkFMU1snYXV0aCddLT5
>hdXRoID0gYXJyYXkoKTsgJEdMT0JBTFNbJ2F1dGgnXS0+YXV0aFsndWlkJ10gPSAnZm9ybSc7ICR
>HTE9CQUxTWydhdXRoJ10tPmF1dGhbJ3Blcm0nXSA9ICcnOyAkR0xPQkFMU1snYXV0aCddLT5hdXR
>oWydleHAnXSA9ICcyMTQ3NDgzNjQ3JzsgJEdMT0JBTFNbJ2F1dGgnXS0+YXV0aFsncmVmcmVzaCd
>dID0gJzIxNDc0ODM2NDcnOyAkR0xPQkFMU1snY2hhbGxlbmdlJ10gPSAnZDljNTg3YTQ4YzkwMjA
>wMDU5M2Y1MGUxMTYyNTEwNzEnOyA=', changed='20020316202455' where
>sid='7c2d54a5282d1bc17c8ec19d28b662a7' and name='Bank_Session'
>MySQL Error: 1146 (Table 'bank_user.active_sessions' doesn't exist)
>Session halted.
>
>It looks like it is trying to save session info in the wrong database. But
>I put some debugging code into ct_sql.inc at line 97 just before the query
>tries to get executed to see what database name and host the class is
>actually set to. It is set to "session" and not "bank_user" (which is
>another database on the server). Is this a problem in phplib or in php
>itself? It seems really strange that the DB_Sql class would try to connect
>to the wrong database.
>
>Any ideas or help would be greatly appreciated.
>
>Thanks,
>Carl Youngblood
>
>
>_______________________________________________
>Phplib-users mailing list
>Php...@li...
>https://lists.sourceforge.net/lists/listinfo/phplib-users
>
|