I am having some difficulty with a seemingly simple setup.  I get a redirect
loop (output of an lwp-request is included below) whenever I attempt to
access a page.  I've used A::A::Plugin::Session in the past.  Am I correct
when I remember that the first redirect I get back from the server should be
to a URL that is "munged" to contain the session key?  Then, if the client
accepts the cookie, and sends it along with the request to the "munged" URL,
another redirect is produced to send the client back to the original URL
(with the assumption that the client will send a session cookie).

I've made several attempts to modify the config file, based upon suggestions
in the list archives.  I either experience this redirect problem or my
session data isn't persistent.  I can't seem to get even the simplest config
to work in even the simplest manner.  What am I missing?

Here's the entire config file
===================================================================
ServerType standalone
Port  50500

ServerRoot /home/gestep/cvs-working/safeschools/apache/
DocumentRoot /home/gestep/cvs-working/safeschools/docs/
TypesConfig /usr/local/apache/conf/mime.types

PerlModule AxKit

AxDebugLevel 4
AxLogDeclines On
#AxTraceIntermediate On
PerlSetVar AuthCookieURLDebug 4

AddHandler axkit .xsp

AxAddProcessor application/x-xsp .

AxAddXSPTaglib AxKit::XSP::Session

PerlModule Apache::AxKit::Plugin::Session
PerlSetVar AxKitSessionDir /tmp/axkit_sessions

<Location />
  AuthType Apache::AxKit::Plugin::Session
  AuthName AxKitSession
  PerlAuthenHandler Apache::AxKit::Plugin::Session->authenticate
  PerlAuthzHandler Apache::AxKit::Plugin::Session->authorize

  require valid-user
</Location>
========================================================================

here is a sample lwp-request invocation:

$ lwp-request -S -e -U http://10.200.200.113:50500/index.xsp
GET http://10.200.200.113:50500/index.xsp
User-Agent: lwp-request/2.01

GET http://10.200.200.113:50500/index.xsp --> 302 Found
Cache-Control: no-cache
Connection: close
Date: Fri, 06 Sep 2002 19:00:15 GMT
Pragma: no-cache
Location: /index.xsp
Server: Apache/1.3.24 (Unix) AxKit/1.6 mod_perl/1.26
Content-Type: text/html
Expires: Fri, 06 Sep 2002 19:00:15 GMT
Client-Date: Fri, 06 Sep 2002 19:00:15 GMT
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Client-Warning: Redirect loop detected
Set-Cookie:
Apache::AxKit::Plugin::Session_AxKitSessionReason=no_session_provide
d; domain=10.200.200.113; path=/; expires=Sat, 07-Sep-2002 19:00:15 GMT
Set-Cookie:
Apache::AxKit::Plugin::Session_AxKitSessionReason=bad_session_provid
ed; domain=10.200.200.113; path=/; expires=Sat, 07-Sep-2002 19:00:15 GMT
Title: 302 Found
URI: /index.xsp

<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
302 Found
</BODY>
</HTML>
============================================================

Here is the contents of my log file:
==============================================================
[Fri Sep  6 15:00:11 2002] [notice] Apache/1.3.24 (Unix) AxKit/1.6
mod_perl/1.26 configured -- resuming normal operations
[Fri Sep  6 15:00:11 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri Sep  6 15:00:15 2002] [error] =======
translate_session_uri(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x841c5ac
))
[Fri Sep  6 15:00:15 2002] [error] uri: /index.xsp
[Fri Sep  6 15:00:15 2002] [error] =======
authenticate(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x841c5ac))
[Fri Sep  6 15:00:15 2002] [error] auth_name= 'AxKitSession'
[Fri Sep  6 15:00:15 2002] [error] ======= key()
[Fri Sep  6 15:00:15 2002] [error] session provided  = ''
[Fri Sep  6 15:00:15 2002] [error] requested uri = '/index.xsp'
[Fri Sep  6 15:00:15 2002] [error] ---------
save_reason(Apache::AxKit::Plugin::Session,no_session_provided)
[Fri Sep  6 15:00:15 2002] [error] =======
save_reason(Apache::AxKit::Plugin::Session,no_session_provided)
[Fri Sep  6 15:00:15 2002] [error] =======
send_cookie(Apache::AxKit::Plugin::Session,name,Reason,value,no_session_prov
ided)
[Fri Sep  6 15:00:15 2002] [error] Sent cookie:
Apache::AxKit::Plugin::Session_AxKitSessionReason=no_session_provided;
domain=10.200.200.113; path=/; expires=Sat, 07-Sep-2002 19:00:15 GMT
[Fri Sep  6 15:00:15 2002] [error] LoginScript=NONE - calling login()
[Fri Sep  6 15:00:15 2002] [error] ---------
save_params(Apache::AxKit::Plugin::Session,/index.xsp)
[Fri Sep  6 15:00:15 2002] [error] =======
save_params(Apache::AxKit::Plugin::Session,/index.xsp)
[Fri Sep  6 15:00:15 2002] [error] =======
login(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x841c5ac),/index.xsp)
[Fri Sep  6 15:00:15 2002] [error] destination = '/index.xsp'
[Fri Sep  6 15:00:15 2002] [error] ---------
authen_cred(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x841c5ac))
[Fri Sep  6 15:00:15 2002] [error] ---------
_get_session(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x841c5ac))
[Fri Sep  6 15:00:15 2002] [error] checkpoint beta, session={}
[Fri Sep  6 15:00:15 2002] [error] ---------
_get_session_from_store(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x841c5
ac),)
[Fri Sep  6 15:00:15 2002] [error] sid  invalid
[Fri Sep  6 15:00:15 2002] [error] No session returned from authen_cred:
bad_session_provided
[Fri Sep  6 15:00:15 2002] [error] ---------
save_reason(Apache::AxKit::Plugin::Session,bad_session_provided)
[Fri Sep  6 15:00:15 2002] [error] =======
save_reason(Apache::AxKit::Plugin::Session,bad_session_provided)
[Fri Sep  6 15:00:15 2002] [error] =======
send_cookie(Apache::AxKit::Plugin::Session,name,Reason,value,bad_session_pro
vided)
[Fri Sep  6 15:00:15 2002] [error] Sent cookie:
Apache::AxKit::Plugin::Session_AxKitSessionReason=bad_session_provided;
domain=10.200.200.113; path=/; expires=Sat, 07-Sep-2002 19:00:15 GMT
[Fri Sep  6 15:00:15 2002] [error] login() redirecting to /index.xsp
[Fri Sep  6 15:00:15 2002] [error] =======
external_redirect(Apache::AxKit::Plugin::Session,/index.xsp)
[Fri Sep  6 15:00:15 2002] [error] =======
fixup_redirect(Apache::AxKit::Plugin::Session,Apache=SCALAR(0x8460b28))
[Fri Sep  6 15:00:15 2002] [error] ---------
save_reason(Apache::AxKit::Plugin::Session,)
[Fri Sep  6 15:00:15 2002] [error] =======
save_reason(Apache::AxKit::Plugin::Session,)
[Fri Sep  6 15:00:15 2002] [error] ---------
_cleanup_session(Apache::AxKit::Plugin::Session,HASH(0x845d408))
==============================================================

--
Greg Estep <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to