Click here to Skip to main content
15,913,300 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

Could any one please tell me , how to update the value of a session variable in asp .net using jquery?



Thanks in advance

What I have tried:

function setSession(value) {

$.session('name', value);

}
where value = "123" from code behind
Posted
Updated 1-Jul-16 7:26am
Comments
F-ES Sitecore 1-Jul-16 4:01am    
Please do basic research before asking a question, google "update asp.net session from query" and you'll find various solutions.
Subhash PM 1-Jul-16 5:12am    
Can i set with out using web method?

Check this access Session variables and set them in javascript [^]

tested, working fine..
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900