Last post Jan 05, 2017 04:54 AM by iamdevloper91
Jan 04, 2017 11:01 AM|iamdevloper91|LINK
Please can u tell me how to use session in web api its not working for me.
i not able to store the value in session and get from it .every time i am getting object reference not set error now its creating the problem.
if i want the session value from controller to another class library to so how its possible.
or from class-library we define one session variable and we need to pass to controller how in webapi tel please
Jan 04, 2017 03:51 PM|Rion Williams|LINK
Generally, Web API is designed to build RESTful services, which by definition are stateless and generally wouldn't use something like the session for that very reason. With that being said, there are approach to explicitly enable it such as those mentioned
However, you may want to consider elaborating on exactly what you are trying to accomplish and there may be alternatives that don't require use of the Session at all.
Jan 05, 2017 04:54 AM|iamdevloper91|LINK
Thanks this link help me now i am able to use sesssion.