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
kumaresan.mkumaresan.m 

Hiding parameters in url of visual force page

kumaresan.m
I want to pass some parameters in url to another page with hidden way. so i tried using getheaders() instead of getparameters(). but this was not works. Please help me understand, how to do? i am pasting my code below:

controller of Page 1:
public PageReference wish() {
    pagereference s=new pagereference('/apex/Aboutus');
    s.getHeaders().put('id','1234');
    return s;
}


Construtor of Page 2:

Public aboutus(){
string ss=ApexPages.currentPage().getheaders().get('id');
system.debug('mylog'+ss);
}

in debug log i am getting null during this action..
trsmithtrsmith
One alternative is to just use the same controller for both pages, then you could maintain the parameters in memory.