You need to sign in to do that
Don't have an account?
Manage session using visualforce pages
Hi
I have made a website using the free domain of site.com and I have used the default SiteLogin functionality.
As soon as I login, I want my user session to start unless I logout. While I am in my session, I want my respective Customer Portal username to be available as a global variable which can be used across all Visualforce pages. Is this possible?
I have made multiple Customer Portal users through SiteRegister visualforce page, but no matter which user logs in, current user is the default user and administrator of the force.com account.
Can you please provide me a code through which after a user logs in, his session is maintained across all visualforce pages till he logs out. While he is logged in, the current user is the user who is logged and not the user of force.com developer account.
Pls. help!
Finally got a solution :)
For all those people who want to register and free force.com site and maintain a session for users, I request you to first create a fresh developer.force.com account even if you have one and follow the following steps.
WORDS OF WISDOM
Instead of finding out why the problem is occurring in your existing portal and debugging it, create a new one and copy all your objects through workbench, copy and paste visualforce pages and apex classes to your new force.com account.
STEPS
All Answers
Youve just described how the portal functionality works. It sounds like you might be previewing as admin if you are always seeing the admin user as the currently logged in user.
Have you accessed the site and then logged in from a clean browser session (i.e. one that you haven't logged into Salesforce through the standard UI from?).
Pls Help!
Finally got a solution :)
For all those people who want to register and free force.com site and maintain a session for users, I request you to first create a fresh developer.force.com account even if you have one and follow the following steps.
WORDS OF WISDOM
Instead of finding out why the problem is occurring in your existing portal and debugging it, create a new one and copy all your objects through workbench, copy and paste visualforce pages and apex classes to your new force.com account.
STEPS