GithubHelp home page GithubHelp logo

Comments (4)

delphinus avatar delphinus commented on July 30, 2024 2

Sorry for late. I wrote a pseudo-code for this. #42 (comment)

  • What client sends to server ? What server send to client ?

It is the cookie. All the clients/servers need to detect the sessions are the cookie. But you need only sessions.Default(c) and this package catches the cookie, and prepares the valid session automatically. (ref #42 (comment))

from sessions.

sensuikan1973 avatar sensuikan1973 commented on July 30, 2024 1

store the username into the session

  • Is this mean that session.Set("username", "Mary") ? Where should the username be stored on GAE/Go with gin ?
  • What client sends to server ? What server send to client ? sessionID? session.name?...?

I would like to see the sample code about login...

from sessions.

delphinus avatar delphinus commented on July 30, 2024

It should be store in sessions beforehand. For instance, when user logs in, the server knows his/her username and password. So the server can store the username into the session and uses it when he/she will access again.

from sessions.

Celthi avatar Celthi commented on July 30, 2024

Thanks for all the replies.

from sessions.

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.