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 :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---