Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class HomePageController {
- public HomePageController()
- {
- String unameParam = ApexPages.currentPage().getParameters().get('uname');
- if(unameparam == null)
- {
- // calling logout method to redirect to home page.
- Logout();
- }
- }
- public PageReference Logout() {
- System.debug('RCHOME ###');
- PageReference mainHome= Page.rc_home;
- mainHome.setRedirect(true);
- return mainHome;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement