Hi James,
In form based auth I don't think we have to follow any standard way of setting a role. If we wanted to put it in the session we would go with using our session variable storing it. Something like,
session.setAttribute("userRole","admin"); and use it in our application where we want to check for the role as,
String useRole = (String)session.getAttribute("userRole");
if (userRole.equals("admin") ) {}
else {} ....
I am not aware of any specific API method or way to set the role in the session...
Any more ideas by ppl?
Regards
Maulin