+ Start a Discussion
hemantgarghemantgarg 

How to get the created portal user logged-in to site

I am working on  site pages .In an apex class I am creating a contact and then a portal user , Now immediately after that I need to get logged-in the recently created portal user on the site, Can anyone suggest , How can I get it ?

RyanGuestRyanGuest

Take a look at the SiteRegistration sample class that is included along with your Force.com site.