What is the difference between Session.Abandon() and Session.Clear()

Clear – Removes all keys and values from the session-state collection. Abandon – removes all the objects stored in a Session. If you do not call the Abandon method explicitly, the server removes these objects and destroys the session when the session times out. It also raises events like Session_End. Session.Clear can be compared to … Read more

How can I set the Secure flag on an ASP.NET Session Cookie?

In the <system.web> element, add the following element: <httpCookies requireSSL=”true” /> However, if you have a <forms> element in your system.web\authentication block, then this will override the setting in httpCookies, setting it back to the default false. In that case, you need to add the requireSSL=”true” attribute to the forms element as well. So you … Read more

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