Search the Community
Showing results for tags 'cookies'.
-
I notice the UniGUI Framework uses Cookies to store the Theme. Question: If Device disables cookies how will this effect UniGUI ?
-
How to store other languages (unicode) in cookies and get it back again var cookieValue = document.getElementsByTagName('input')[0].value; document.cookie = "lboxcook=" + encodeURIComponent(cookieValue); function get_cookie(cookie_name) { var results = document.cookie.match ('(^| ?' + cookie_name + '=([^;]*)(;|$)'); return results ? decodeURIComponent(results[2]) : null; } Farshad, I think in the future, by default, you can use this approach when saving cookies Sincerely.
-
Здравствуйте. Подскажите как правильно писать и читать строки в куках содержащие скажем русский текст. При стандартном подходе (в демо примере на сайте) кодировка коверкается.
-
Not wanting to nit pick, but I think some warning and/or improvement may be in order in the LoginForm Cookie demo. The demo directly stores the username and password in plaintext cookies. This is not good practice and should not be encouraged via example. For more see: https://www.troyhunt.com/how-to-build-and-how-not-to-build/ http://security.stackexchange.com/questions/64984/remember-me-cookies-did-i-implement-them-securely http://security.stackexchange.com/questions/44/how-to-securely-implement-a-remember-me-feature Edit: Also: https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence#title.2 (Would it be possible to host the demo's on e.g. a github repository? I'd guess lots of people would be happy to submit pull requests for fixes and improvements to the demo applications?)