|
From: Chris W. <ch...@cw...> - 2002-06-15 18:34:55
|
On Sat, 2002-06-15 at 14:17, Allen Day wrote:
> There were some sessions left in the sessions table. I deleted them, but
> still have the same problem. The a_session field seems to have some
> binary data in it. It puts backspaces into the row display. Is this
> normal?
Yeah, that's correct. Apache::Session::MySQL uses Storable to
freeze/thaw the session data, and Storable is a binary format.
> I'm using MySQL 3.23
I think that should be ok. I've tested OI/MySQL with 3.23.36 without
problems.
What versions are you using of the following?
Apache
mod_perl
DBI
DBD::mysql
Apache::Session
> Here is the content of a fresh error_log_modperl_solo logfile after trying
> to log in as superuser and create a new user and a new template. Why is
> it setting hostname to either the admin or content email address?
It sets the hostname by calling:
my $srv = $apr->server;
$R->{server_name} = $srv->server_hostname;
And 'perldoc Apache' says:
$s->server_hostname
Returns the hostname used by this server.
So maybe you have the server or vhost name set incorrectly in your
Apache configuration? ('ServerName' should be the hostname,
'ServerAdmin' should be your email.)
> ------------
> OpenInteract::Template::Process::handler (138) >> Using
> template name (base_box::login_box) for processing
> OpenInteract::Template::Process::handler (138) >> Using
> template name (base_box::main_box_shell) for processing
> OpenInteract::cleanup (428) >>
> Request done: Sat Jun 15 11:12:37 2002
> path: (/User/show/?edit=1) PID: (32312)
> from: (192.168.10.1)
> ==============================
Had you logged in previously? This isn't a complete request -- it would
be useful to see the snippet that you've logged in ok. It would look
something like:
---------------
OpenInteract::Session::DBI::_create_session (26) >> Trying to fetch
session 7c958d41dfd21477f02ab1396d683f03
OpenInteract::Auth::user (63) >> No uid found in session. Finding login
info.
OpenInteract::Auth::login_user (166) >> Found login name from form:
(superuser)
OITest::User::check_password (101) >> Checking using the crypt()
function.
OpenInteract::Auth::login_user (194) >> Passwords matched; UID (1)
OpenInteract::Auth::set_cached_user (214) >> Set user to session cache,
expires in [30] minutes
OpenInteract::Auth::group (259) >> Authenticated user exists; getting
groups.
OpenInteract::Auth::group (283) >> Set groups to session cache, expires
in [30] minutes
---------------
> OpenInteract::Session::DBI::_create_session (28) >> Trying to
> fetch session [a38ca239fbc176829e875e2c5d7fc3bb]
> OpenInteract::Auth::user (63) >> No uid found in session.
> Finding login info.
> OpenInteract::Auth::user (72) >> Creating the not-logged-in
> user.
> OpenInteract::Auth::group (256) >> No logged-in user found,
> not retrieving groups.
This says that you've got a session without login infomration, which is
why you're getting the 'task forbidden' errors.
Try:
- deleting the session from the table:
delete from session where id ='a38ca239fbc176829e875e2c5d7fc3bb'
- login using the login box
- see if you get something like this toward the end of the request
where you login and/or create a new session:
---------------
OpenInteract::Session::save (79) >> Session not yet created. Creating...
OpenInteract::Session::DBI::_create_session (26) >> Trying to fetch
session
OpenInteract::Session::save (101) >> Expiration for new session set to
default from config (+3M)
---------------
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
|