-
π± Iβm currently learning Web Development and other programming languages
-
π« How to reach me [email protected]
-
β‘ Fun fact: Coding and Musicπ΅ are the reasons to live.
Build dynamic web apps with speed! This template combines Vite for rapid development, TypeScript for robust code, and multilanguage support using react-i18next. Start fast, stay efficient.
π± Iβm currently learning Web Development and other programming languages
π« How to reach me [email protected]
β‘ Fun fact: Coding and Musicπ΅ are the reasons to live.
I encountered a problem in eraseCookie method where cookies were not being deleted as expected. This issue was persistent across different browsers and environments.
Root Cause:
Upon further investigation, I discovered that the eraseCookie method was not specifying the path when attempting to delete the cookie. In our setCookie method, we set cookies with the path=/ attribute, making them available across the entire domain. However, when trying to erase these cookies without specifying the same path, the deletion was unsuccessful.
Solution:
To address this inconsistency, I've updated the eraseCookie method to include path=/ in the cookie deletion process. This change ensures that the cookie deletion aligns with how we initially set them.
Updated eraseCookie Method:
public static eraseCookie(name: string) {
document.cookie = name + '=; Max-Age=-99999999; path=/;';
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.