Giter Site home page Giter Site logo

Use cookies about vscode-restclient HOT 7 CLOSED

huachao avatar huachao commented on May 4, 2024
Use cookies

from vscode-restclient.

Comments (7)

Huachao avatar Huachao commented on May 4, 2024 1

@ganlhi , this feature has been implemented in latest version 0.7.0, please help to verify it πŸš€

from vscode-restclient.

Huachao avatar Huachao commented on May 4, 2024

@ganlhi, thanks for your suggestion. If implement this, I may need to implement a cookie storage, I think this is low priority now. I will consider this later. And now you can copy the value in Set-Cookie header and paste in request. BTW, copy will be enable when VS Code release new version

from vscode-restclient.

Huachao avatar Huachao commented on May 4, 2024

@ganlhi, I am considering the automatically sending/storing cookie feature, and I have a question that wants to discuss with you. As we all know, cookies can be persistent cookie(for browser, normally stored on disk and available until expire time), or session cookie(temporary and erase when browser close, no expire time in Set-Cookie header).
So I am not sure how we should handle the session cookie in my extension?

from vscode-restclient.

ganlhi avatar ganlhi commented on May 4, 2024

Well... I'm not an expert on implementing these things, but maybe you can consider a vscode window to be a browser instance, and so delete session cookies when window is closed?

from vscode-restclient.

Huachao avatar Huachao commented on May 4, 2024

@ganlhi , or if I can handle these 2 kind of cookies in the way like browser, for persistent cookie, I will save them to local file system which can be reused next time; for session cookie, I will only save them in memory, and if VS Code is closed, our extension are inactive, and all the session cookie in memory are automatically removed. Next time you open vs code and activate our extension, you can only use the persistent cookie stored in file.

from vscode-restclient.

ganlhi avatar ganlhi commented on May 4, 2024

That seems a good idea!

from vscode-restclient.

ganlhi avatar ganlhi commented on May 4, 2024

Hey there! Good news!
Just got back from vacation. Will try this ASAP.

from vscode-restclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.