Does SharePoint support session variables that can be accessed by the client side? Using client side jQuery or JS or even placing code on an ASPX acsset attached to a webpart to set variable on the page in a web part that can be read by the jQ, JS, etc.
In this example your variable will have string type. If it is e.g. integer, you don't need to use quotes ''. The idea is the same as described in this article: Pass locale of current web site (
Note that you can't use this technique in separate
You can also look at this post.
- You may use