persist values/variables from page to page

Posted by Todd on Stack Overflow See other posts from Stack Overflow or by Todd
Published on 2010-04-07T15:01:59Z Indexed on 2010/04/07 15:03 UTC
Read the original article Hit count: 200

Hello, I'm wondering if there's another solution to my problem, that's considered more the Sharepoint way. FIrstly, my site is an Internet site, not Intranet. The problem is, all I'm trying to do is save values/variables from page to page in Sharepoint. I know the issue with Session Variables, but this seems to be the only way I can see to accomplish this. I know there are webparts that can store this value, but am I wrong in thinking this won't be persisted from page to page?

Basically, I'll be extending the Content Query Web Part to dynamically filter it's results based off of a variable/value. The user chooses their 'area' from a dropdown, and the CQWP in the site will change and query results based off of this value (It will be a provincial structure as it is a Canadian site, so if someone chooses the province 'Ontario', this value is saved in a global variable, and these extended CQWP that are throughout the site, will get this value, and query lists flagged as Ontario).

Is Session variables the only solution?

Thanks everyone!

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about global-variables