GithubHelp home page GithubHelp logo

Comments (7)

kamikat avatar kamikat commented on May 22, 2024

Set cookie.secure = true will also cause a session cookie lost in WebView.

from session.

azat-co avatar azat-co commented on May 22, 2024

@shinohane, maybe cookie.secure=true related to #19?

from session.

Fishrock123 avatar Fishrock123 commented on May 22, 2024

Maybe related to #10 ?

from session.

kamikat avatar kamikat commented on May 22, 2024

@azat-co the tested website is already running on https connection. All session works happily using my desktop browser (chrome/firefox). It's probably an issue of WebView implementation of the mobile apps.

from session.

jarrodconnolly avatar jarrodconnolly commented on May 22, 2024

One thing I notice here is that you are setting a maxAge of 86400, maxAge is defined in milliseconds so that works out to a cookie lifetime of 86.4 seconds. Is your session expiring even faster than that or could that be part of the issue here?

from session.

Fishrock123 avatar Fishrock123 commented on May 22, 2024

@shinohane Are you sure you are setting the time long enough at @jarrodconnolly mentioned?

I have my maxAge set to 4 hours: 1000 * 60 * 60 * 4 -> 14400000 - sometime it's easier to see in that format.

from session.

kamikat avatar kamikat commented on May 22, 2024

@jarrodconnolly @Fishrock123 Thank you very much, The cookie persists after set maxAge of 86400 * 1000. But it's weird that original test procedure failed to signin even if completed in less than 86.4sec. Then, I realized that the cookie's expire is calculated based on the server time which is out of sync......

from session.

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.