Setting HTTPONLY for Classic Asp Session Cookie

Microsoft includes an example using an ISAPI filter to all outbound cookies: http://msdn.microsoft.com/en-us/library/ms972826 or URL rewriting could be used http://forums.iis.net/p/1168473/1946312.aspx <rewrite> <outboundRules> <rule name=”Add HttpOnly” preCondition=”No HttpOnly”> <match serverVariable=”RESPONSE_Set_Cookie” pattern=”.*” negate=”false” /> <action type=”Rewrite” value=”{R:0}; HttpOnly” /> <conditions> </conditions> </rule> <preConditions> <preCondition name=”No HttpOnly”> <add input=”{RESPONSE_Set_Cookie}” pattern=”.” /> <add input=”{RESPONSE_Set_Cookie}” pattern=”; HttpOnly” negate=”true” /> </preCondition> … Read more

This Set-Cookie didn’t specify a “SameSite” attribute and was default to “SameSite=Lax” – Localhost

As of Chrome v107 (Nov 2022) I had a similar issue, spent a few hours digging, and what I found is that the only solution for Chrome is to make your front-end connection secure, ie https (using a proxy for instance): Link An alternative solution is to use Firefox and set: about:config > network.cookie.sameSite.noneRequiresSecure=false. This … Read more

how to refresh JSESSIONID cookie after login

You will not refresh after but just before. When executing the login action first do: HttpSession session = request.getSession(false); if (session!=null && !session.isNew()) { session.invalidate(); } Then do: HttpSession session = request.getSession(true); // create the session // do the login (store the user in the session, or whatever) FYI what you are solving with this … Read more

uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError)

The secret cookie store was recently removed in Rails 4. See Changelog. In order to get your app working again, replace the line config.session_store :encrypted_cookie_store with config.session_store :cookie_store in config/initializers/session_store.rb. The store will be automatically encrypted. If unsure. Create a new Rails 4 app (rails new app_name –pre) and have a look at the initializers. … Read more

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