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

Hiding parameters in url of visual force page

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');
    return s;

Construtor of Page 2:

Public aboutus(){
string ss=ApexPages.currentPage().getheaders().get('id');

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