Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Keep history of shortened urls using cookies #106

Closed
kauxp opened this issue May 20, 2024 · 3 comments
Closed

[Feature] Keep history of shortened urls using cookies #106

kauxp opened this issue May 20, 2024 · 3 comments

Comments

@kauxp
Copy link

kauxp commented May 20, 2024

Description

When a user uses this service to shorten a URL we can store the shortened URL along with the original in browser cookies so that the user does not have to ping to shorten the same URL repeatedly.

Changes

When the shortened URL is returned, I will save the original and shortened URL as a key-value pair in browser cookies.

Alternatives

We can create an authentication system where we can track all the URLs shortened by the user, this will allow us to track all URLs shortened by the user, and we can also track the number of hits on that URL. This will enable us to do anything we want.

Contributor

Paramjeet Kaur Matharu
I can work on this issue and implement it.

Copy link

Congratulations, @kauxp! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work!

We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines

@kauxp kauxp changed the title Keep history of shortened urls using cookies [Feature] Keep history of shortened urls using cookies May 20, 2024
@abhijeetnishal
Copy link
Owner

Hey @kauxp, there are many disadvantages of keeping history in cookies like:

  1. Cookies have size limitations, which can restrict the number of URLs that can be stored.
  2. Cookies can be vulnerable to attacks, which could compromise user data.
  3. Cookies may not work consistently across different browsers, devices, or platforms.

Because of these issues, we can't implement this using cookies we can use server side storage for logged in users to see there shortened URL's, for that there is an issue #98

contribute to other issues or projects, good luck.

@Aditya2ReaLNITKKR
Copy link

@kauxp i want to work on this issue under ggsoc' 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants