2 answers
Following Details can help you for storing data in session on Salesforce force.com public sites.....Cookie sessionStore= new Cookie('BookTitle',test’,null,-1,false); // provide data in 'BookTitle' =’test’ ApexPages.currentPage().setCookies(new Cookie[]{sessionStore}); //set value in cookie // provide that value to string variable sessionData String SessionData = ApexPages.currentPage().getCookies().get('BookTitle').getValue(); system.debug(‘SessionData ’+SessionData ) Return :- SessionData : testLet me know if this is helpful ;)ThanksDaisy ScottSalesforce Consultants (http://www.janbask.com/salesforce-consulting-services/)