I have a VF page which is exposed as a site. This VF page contains one tab panel having four tabs.

Now my requirement is if the user fills values in first two tabs and then leave the page. When next time user opens the same page then he should be able to start from the same tab from where he left the page.

The values captured in sites are stored in the custom object.

What is the best approach to achieve this?

2 Answers 2


You need to capture the user info and tab info so that you can default landing tab by looking those stored values.


If the user is logged in, store the data in a Custom Setting. If the user is just a Guest, store the information in a Cookie instead.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .