You need to sign in to do that
Don't have an account?
roseIndia
Session Management in VisualForce
Hi,
I am new to VisualForce
Is there any method for session management in Visualforce?
I am sending a HttpRequest from one controller to some web server which is sending the response to some other controller (that it is redirecting to my direct_url which is a controller) due to this the data store in first controller is lost.
Is there any process to save the data from first controller and make it visible in the second controller.
Regards,
Afroz
go throw the apex guide it in there
http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf
you can hold the data in controller if you redirect from 1st page to 2nd using setredirect = false
You can maintain the session between two pages, then You can pass the parameters from one page to another or if you want the communication between two classes then you will have to use Virtual class.
best possible soluction for your problem is
figure out is there any way or any paramter in which you set you data before making you Http Request & it will come back as it is in Responce
Registering a Site domain and Maintaining a Session
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