This hasn't changed since 1.5 and is simply a problem with the docs it seems. It's normal that is clears the remember me cookie at logout, since otherwise it would automatically log in at the next request even when the authentication cookie is cleared. Mind updating the wiki?

On 05 May 2007, at 07:24, David HM Spector wrote:

I've declared my logout element as follows:

    <element id="LOGOUT" file="rife/logout/passthrough/database.xml"
url="/logout">
        <property name="datasource"><datasource><config
param="DATASOURCE"/></datasource></property>
        <property name="authvar_type">cookie</property>
        <flowlink srcexit="logged_out" destid="HOME"/>
        <incookie name="rememberid"/>
    </element>


When firefox users log out the get a RIFE error:
(this only happens on Firefox, never on IE7 or Safari)

/com.uwyn.rife.engine.exceptions.OutcookieUnknownException/

*The element 'rife/logout/passthrough/database.xml' doesn't contain
outcookie 'rememberid'.*

at  com.uwyn.rife.engine.ElementInfo       validateOutcookieName        (
ElementInfo.java : 1812 )
at  com.uwyn.rife.engine.ElementContext            setCookie    (
ElementContext.java : 2086 )
at  com.uwyn.rife.engine.ElementSupport            setCookie    (
ElementSupport.java : 4148 )
at  com.uwyn.rife.authentication.elements.AbstractLogout
   performLogout        ( AbstractLogout.java : 114 )
at  com.uwyn.rife.authentication.elements.AbstractLogoutPassthrough
   processElement       ( AbstractLogoutPassthrough.java : 35 )
at  com.uwyn.rife.engine.ElementContext            processContext       (
ElementContext.java : 450 )
at com.uwyn.rife.engine.RequestState service ( RequestState.java
: 351 )
at  com.uwyn.rife.engine.Gate      handleRequest        ( Gate.java : 192 )
at  sun.reflect.GeneratedMethodAccessor57          invoke       ( <unknown> )
at  sun.reflect.DelegatingMethodAccessorImpl       invoke       (
DelegatingMethodAccessorImpl.java : 25 )
at  java.lang.reflect.Method       invoke       ( Method.java : 585 )
at com.uwyn.rife.servlet.RifeFilter doFilter ( RifeFilter.java :
162 )
at  org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain
   doFilter     ( WebApplicationHandler.java : 821 )
at  org.mortbay.jetty.servlet.WebApplicationHandler        dispatch     (
WebApplicationHandler.java : 471 )
at  org.mortbay.jetty.servlet.ServletHandler       handle       (
ServletHandler.java : 568 )
at org.mortbay.http.HttpContext handle ( HttpContext.java : 1530 )
at  org.mortbay.jetty.servlet.WebApplicationContext        handle       (
WebApplicationContext.java : 633 )
*8 more ...*



However adding

            <outcookie name="rememberid"/>

to the logout element seems to fix it... which seems to be contrary to
the docs at http://tinyurl.com/29ujkc

This is using a 1.6 snapshot. Did the behavior change between 1.5 and now?


David
--
---------------------------------------------------------------------- ---------- David HM Spector [EMAIL PROTECTED]
http://www.zeitgeist.com/

"New and stirring things are belittled because if they are not belittled, the humiliating question arises, 'Why then are you not taking part in them?'" -- H. G. Wells


_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to