Various technical articles, IT-related tutorials, software information, and development journals
Wednesday, October 2, 2013
Logofrag - Fixed the Session
As I predicted, work on Logofrag is going along very slowly (something to do with schoolwork being so time-consuming and Etho being so entertaining). I did some reading of the MSDN ASP.NET docs and discovered that, unlike Request.QueryString, Session items are Nothing by default. I had been doing all kinds of stuff to see if it existed, make sure it was an integer, and parse it appropriately. That was useless because I could just shove an Int32 into it and then retrieve that exact same value later. So, I went through the small codebase and removed the string-parsing logic from accesses to the logged-in user ID. Progress!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment