Re: [Refdb-users] A cookie problem? (refdb 0.8.4a)
Status: Beta
Brought to you by:
mhoenicka
From: <Xia...@gs...> - 2002-06-12 17:22:50
|
I got the same problem before, and it seems that there's a small bug in access.js file. In the setall() function of access.js file, the value of variable expDays is 0. So the cookie expires immediately after it's set. I changed this value, and it works fine now. Hope it helps. Xiang "Georg Rehm" <Geo...@ge...> Sent by: ref...@li... 12-Jun-2002 13:12 Please respond to Geo...@ge... To: refdb-users cc: Subject: [Refdb-users] A cookie problem? (refdb 0.8.4a) Hi everybody, I run the latest RefDB tarball (0.8.4a) on a Mandrake 8.1 box (MySQL 3.23.49, Apache 1.3.24), but I have a tiny problem with the Web interface: If I log in on the first HTML document with a valid user, a valid password and a valid database (valid at least for refdbc in the shell), the page tells me I'm logged in now (I know, pressing the Login-button isn't necessary). If I switch pages to "Display current database", the answer is "nodb". /var/logs/refdbd.log contains nothing for this request. If I try to issue a query by means of one of the HTML forms, I get an "internal server error" and entries like the following in refdbd.log (I guess this is the same problem that Michael Ayers reported the other day): 4:pid=14113:Wed Jun 12 16:02:52 2002:Access denied for user: 'no...@ho...' (Using password: YES) 7:pid=14113:Wed Jun 12 16:02:52 2002:command processing done, finish dialog now If I log in on the first HTML page and issue a "Simple query" on this page, the correct result is displayed and several corresponding SELECT statements are contained in refdbd.log. I assume the trouble is caused by a major problem with setting the cookies containing the user/password/database information (I experience exactly the same behavior on both Netscape Navigator 6 and Internet Explorer 5, so I doubt that it's browser-related). Navigator reports in its Preferences menu that the Apache on my RefDB server successfully put only one cookie in the browser's environment: Information about the selected cookie Name: SID Information: [some hash code] Host: hostname Path: / Server Secure: no Expires: at end of session If I understand the JavaScript code in "access.js" correctly, three cookies (called "name", "passwd" and "database") should be present. Does anyone know why this doesn't work in my setup? Do I need to add something to my more or less plain vanilla configuration of Apache or is this a bug in "access.js"? Greetings and thanks in advance, Georg -- Geo...@un... http://Georg-Re.hm http://www.uni-giessen.de/fb09/ascl/ Research unit for Applied and Computational Linguistics, University of Giessen _______________________________________________________________ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Refdb-users mailing list Ref...@li... https://lists.sourceforge.net/lists/listinfo/refdb-users |