Last post Jun 22, 2015 05:30 AM by Siva Krishna Macha
Jun 22, 2015 12:15 AM|ibcent2003|LINK
here is my question, i have to move a value across all pages visit in my site that im developing. if i use a session, the session expired even though the current logged session doesnt expired. if i decide to use a query string, that mean i have to be passing
the query string to all the link. i dont know about using cooking that much that is im seeking for your advice.
Please is there a way to achieve this.
Jun 22, 2015 02:06 AM|anuj_koundal|LINK
Note: Make sure not to store any sensitive data in cookies. Cookies can be easily modified. You can
Encrypt or decrypt cookies in asp .net to apply security.
Jun 22, 2015 03:58 AM|ibcent2003|LINK
Jun 22, 2015 05:30 AM|Siva Krishna Macha|LINK
There may also be better options instead of using cookies, especially when the data you want to share across is "sensitive".
As you might know, cookies are stored in client side on browser (something like text files). So, it is essential to understand what kind of data you would want to share across.
If you would like to use more secure mechanism, on server side, you can go with Application or Cache variables as well.
For complete information on the state management principles, I would recommend to go through this nice article from MSDN:
From code project:
Regarding usage of Cache variables for storing data/objects, you can refer these articles:
See Data Caching from
See Object Caching from
For complete reference from MSDN: