Storing Objects in Session in Asp.Net Core

Since you are here, you already know the challenges of not being able to use Session in the same way as was possible in the days of .Net Framework. Hence I will get straight to the point of how to do this - without trying to tell you why you shouldn't store object in the session, because if you have a use case for storing session, then you need to know how to do it right - and how not to do it as well. However my approach should be either taken as an interim while you are migrating your old apps from Asp.Net Framework to Asp.Net Core - with a long term plan to move away from session objects all together, or you should use my recommended approach only if you are providing a single server solution or a box solution. First: How not to do this. Microsoft's official page recommends storing objects in a session as a serialised object - they are assuming we all need multiple servers for our projects. But whether we use multiple server or single server the solution for serial

Cryptocurrencies: A bubble that doesn’t burst, a volcano that didn’t disrupt anything, and a coin that can make few rich but can’t buy vegetables

Article by Kalpesh Popat, Thought Leader for Technology, Nature and Relations, Director @ SARAS ennovations When It All Started Bitcoin, the flag bearer of Cryptos, launched in Jan-2009, but my story unfolds several centuries ago. Let’s take a quick look back into our young carefree days when collecting coins of various countries was a passion. What interested me particularly were the coins of various Kings of India. Our country so rich in its culture was also rich in Kings and their century old coins made for a great collectible, each had their own version imprinted on some form of metal. Before the coins were introduced, barter system was the only means for transaction. Since barter system was rigid as it forced us to have a transaction only when both parties had something useful for each other, coins (currency) became a great engine to fill the gaps in the barter system,  giving birth to a much flexible economy that was also easy to save, account and tax. Currencies, however also ga

How to give correct file ownerships and permissions to secure your app server

Linux is such a powerful Operating System and the permissions it provides are powerful and simple and yet most widely misunderstood. I have gone through so many forums and one common observation was there is lack of understanding on how permissions work. Most people give standard answers like put 644 or some ignorant ones even suggest 777, not knowing the underlying architecture of the system at all. I thought it is time to put a blog that clearly outlines what are these permissions and how they really work behind the scenes. There are many who know the underlying principles - i invite all of them to share their feedback to help expand this blog and serve newcomers even better. This blog is not about how to set permissions or how to improve security. How part has been covered by many bloggers, hence we will not be discussing any commands. I am only going to focus on What permissions to give and Why. Let's start Most common scenario is there is a website or an applicat