Set expire times, input string type Unit Set expire times - end of browser session this.$t("default_unit_second","input_value",0) // end of session - use 0 or "0"! This.$t("default_unit_second","input_value",60 + 30) // 1 minute 30 second after, expire set ( "user_session", "25j_7Sl6xDq2Kc3ym0fmrSSk2xV2XkUkX", "Sat, 12:25:57 GMT" ) set expire times, input number type this.$t("default_unit_second","input_value",1) // 1 second after, expire set ( "user_session", "25j_7Sl6xDq2Kc3ym0fmrSSk2xV2XkUkX", "1D" ) // Base of second. set ( "user_session", "25j_7Sl6xDq2Kc3ym0fmrSSk2xV2XkUkX" ) // number + d, ignore case. Suppose the current time is : Sat, 12:25:57 GMTįollowing equivalence: 1 day after, expire default options config: Ĭonsole.log(this.$cookies.get('user').name) Package Managers npm install vue-cookies -save A simple Vue.js plugin for handling browser cookies Installation Browser
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |