function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.