hi,

I have two roles defined one 'admin' and one 'veli' ann two users each has
only one role. I want my users can only log in to only one subsite without
any affect to each other. I changed the authid cookie name (I think I miss
some point here) like below for the second subsite.

<group>
        <globalcookie name="newid"/>
        <element id="NewDatabaseAuth"
extends="rife/authenticated/database.xml">
                <property name="password_encryption">SHA</property>
                <property name="template_name">authentication.veli
</property>
                <property name="role">veli</property>
                <property name="authvar_type">cookie</property>
                <property
name="datasource"><datasource>postgresql</datasource></property>

                <submission name="credentials">
                    <param name="login"/>
                    <param name="password"/>
                </submission>

                <childtrigger name="newid"/>
        </element>
        <subsite id="Veli" file="veli.xml" urlprefix="/veli"
inherits="NewDatabaseAuth"/>
    </group>

But now when I try to login I got exception,
com.uwyn.rife.engine.exceptions.OutcookieUnknownException: The element
'manual:NewDatabaseAuth' doesn't contain outcookie 'authid'.

I changed the cookie name ?  Am I missing something?

Thanks in advance.

dogan

On 9/7/07, Geert Bevin <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> how are your users setup? Are you sure that the same user has both
> roles? If you login as a different user, then the authid cookie gets
> replaced by a new one that is only valid for the new user that logged
> in.
>
> Best regards,
>
> Geert
>
> On 07 Sep 2007, at 09:09, dk wrote:
>
> >
> > Thanks for the quick reply,
> >
> > actually it the the first subsite that logged out. I know because it
> > is a crud interface and when I try to enter the first subsite it
> > redirect me to login page.
> >
> > Sorry for my bad English:
> >
> > Let me explain it again
> >
> > There are two subsites like A and B.
> >
> > When I logged in to subsite A(by the way roles are different for A and
> > B ) it works normal. I can see subsite A but not subsite B. Then I
> > logged in to sub site B(which has another role and user assigned)
> > which has supposedly totally different authentication mechanism. This
> > is also works fine. But at this point logging into subsite b causes to
> > subsite a logged out as after logging into subsite B, A redirect any
> > url inside it to its login  page.
> >
> > I hope I can explain my problem.
> >
> > Thanks
> >
> >
> > On Sep 7, 9:48 am, Geert Bevin <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> can you please detail what makes you conclude that the first
> >> authentication is 'logged out' when you visit the 2nd sub-site?
> >>
> >> Thanks,
> >>
> >> Geert
> >>
> >> On 07 Sep 2007, at 08:23, dk wrote:
> >>
> >>
> >>
> >>
> >>
> >>> hello everyone,
> >>
> >>> A need two different subsite which need authentication with
> >>> different
> >>> roles. For this purpose I create another role in
> >>> CreateAuthenticationStructure and in main.xml I created two
> >>> different
> >>> element which extends database.xml
> >>
> >>> <element id="AuthAdminDatabase" extends="rife/authenticated/
> >>> database.xml">
> >>>                    <property name="password_encryption">SHA</
> >>> property>
> >>>                    <property
> >>> name="template_name">authentication.veli</property>
> >>>                    <property name="role">admin</property>
> >>>                    <property name="authvar_type">cookie</property>
> >>>                    <property
> >>> name="datasource"><datasource>postgresql</datasource></
> >>> property>
> >>
> >>>                    <submission name="credentials">
> >>>                            <param name="login"/>
> >>>                            <param name="password"/>
> >>>                    </submission>
> >>
> >>>                    <childtrigger name="authid"/>
> >>>            </element>
> >>
> >>> <element id="AuthVeliDatabase" extends="rife/authenticated/
> >>> database.xml">
> >>>                            <property
> >>> name="password_encryption">SHA</property>
> >>>                            <property
> >>> name="template_name">authentication.newRole</property>
> >>>                            <property name="role">newRole</property>
> >>>                            <property name="authvar_type">cookie</
> >>> property>
> >>>                            <property
> >>> name="datasource"><datasource>postgresql</datasource></
> >>> property>
> >>
> >>>                            <submission name="credentials">
> >>>                                    <param name="login"/>
> >>>                                    <param name="password"/>
> >>>                            </submission>
> >>
> >>>                            <childtrigger name="authid"/>
> >>>            </element>
> >>
> >>> these two are used as follows:
> >>> <subsite id="Admin" file="admin.xml" urlprefix="/admin"
> >>> inherits="AuthAdminDatabase"/>
> >>> <subsite id="Veli" file="veli.xml" urlprefix="/veli"
> >>> inherits="AuthVeliDatabase"/>
> >>
> >>> AND finally my problem :
> >>> when I logged in to one of the sites and try to log into other
> >>> subsite
> >>> the first authentication automatically logged out.
> >>
> >>> ps. If this is related to "<childtrigger name="authid"/> "
> >>> someone plz
> >>> explain this clearly because I cant find any sufficient
> >>> explanation in
> >>> the maillist doc or anywhere :)
> >>
> >> --
> >> 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
> >
> >
> > >
>
> --
> 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
>
>
> >
>


-- 
doğan kaya berktaş

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to