Hi Malin.
If you use the same code for your Login Welcome page to redirect people based on the ccap, then the last condition that is true will define the redirection URL to, and will be the one used in the end.
So if a user with ccap1, ccap2 and ccap3 lands on that page and you had:
[hilite pre_code]
if (current_user_can('access_s2member_ccap_ccap1'))
$welcome_page = "http://mywebsite.se/welcome-ccap1/";
if (current_user_can('access_s2member_ccap_ccap2'))
$welcome_page = "http://mywebsite.se/welcome-ccap2/";
if (current_user_can('access_s2member_ccap_ccap3'))
$welcome_page = "http://mywebsite.se/welcome-ccap3/";
[/hilite]
then $welcome_page would be the one for ccap3.
If you used elseif’s instead, then the first one to be true would be it:
[hilite pre_code]
if (current_user_can('access_s2member_ccap_ccap1'))
$welcome_page = "http://mywebsite.se/welcome-ccap1/";
elseif (current_user_can('access_s2member_ccap_ccap2'))
$welcome_page = "http://mywebsite.se/welcome-ccap2/";
elseif (current_user_can('access_s2member_ccap_ccap3'))
$welcome_page = "http://mywebsite.se/welcome-ccap3/";
[/hilite]
In this case the URL for ccap1.
I hope that helps. :)