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
kishore64kishore64 

Capture current user ID by apex in Force.com Sites

Hi Folks,

I had implemented a Force.com site and the same site i am using in session setting return URL.
When ever the user is logging out am redirecting to this site URL,at this time i want to know the current user eamil id(by using Userinfo.getUserId() am getting the user email) but here the problem is, when am querying the current user ID while logging out am getting my user email id only for all users because site had created with my user id.So, how can we get the current user email ID while logging out.

Please help me out on this.....