Can you help me understand this? “Common REST Mistakes: Sessions are irrelevant”

To be RESTful, each HTTP request should carry enough information by itself for its recipient to process it to be in complete harmony with the stateless nature of HTTP. Okay, I get that HTTP authentication is done automatically on every message – but how? Yes, the username and password is sent with every request. The … Read more

Session timeout in ASP.NET

Are you using Forms authentication? Forms authentication uses it own value for timeout (30 min. by default). A forms authentication timeout will send the user to the login page with the session still active. This may look like the behavior your app gives when session times out making it easy to confuse one with the … Read more

NHibernate ISession Flush: Where and when to use it, and why?

Briefly: Always use transactions Don’t use Close(), instead wrap your calls on an ISession inside a using statement or manage the lifecycle of your ISession somewhere else. From the documentation: From time to time the ISession will execute the SQL statements needed to synchronize the ADO.NET connection’s state with the state of objects held in … Read more

Chrome doesn’t delete session cookies

This can be caused by having Chrome set to Continue where you left off. Further reading Bug report: Chrome is not deleting temporary cookies – i.e. not logging me out automatically when I close all browser Windows Issue 128513 in Chromium: Session Cookies not cleared when Chrome processes closed Issue 128567: Session only cookies don’t … Read more

Cookies vs. sessions

The concept is storing persistent data across page loads for a web visitor. Cookies store it directly on the client. Sessions use a cookie as a key of sorts, to associate with the data that is stored on the server side. It is preferred to use sessions because the actual values are hidden from the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)