question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FoalTS V2: UseSessions - Generates session when requesting static files e.g. favicon.ico

See original GitHub issue

Been trying to migrate my project from V1 to V2, have found that the new UseSessions generates a session when I’m requesting a static asset, not sure if I’m using it wrongly.

My front-end controller is as follows:-

@UseSessions({ store: MongoDBStore, cookie: true })
export class DefaultController {
    public subControllers = [
        // Checkout - uses cookies
        controller("/checkout", CheckoutController),
    ]

    @Get("/*")
    public async defaultView(ctx: Context) {
       // Serves a single page application - using JWT and no cookies
        return new HttpResponseRedirect("/admin");
    }


}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
crossinghoodscommented, Jan 23, 2021

Did stripped down version with angular and { WithCredentials: true} but am not able to recreate the session duplication issue.

Think I’ll have to call it an issue within my code 😦

1reaction
crossinghoodscommented, Jan 22, 2021

Was thinking about that about when I was responding but was a bit tied up with work, I’ll try to get it uploaded here as soon as I can

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent favicon.ico requests? - Stack Overflow
You can stop the browser requesting favicon. ico when a user returns to your site, by getting it to stay in the browser...
Read more >
Session | Booking platform for photographers.
Scheduling & Availability. It's never been easier for your clients to book you. Create session types, set your availability, share your link, and...
Read more >
Flask Documentation - Read the Docs
For example, by convention, templates and static files are in subdi- rectories within the Python source tree of the application. While this can...
Read more >
Session Recording 2109 - Citrix Product Documentation
The Broker. An IIS 6.0+ hosted Web application that handles the search queries and file download requests from the Session Recording Player, ...
Read more >
NetSuite Applications Suite - Oracle Help Center
If you use sessions with your SOAP web services integrations, you must ensure that your SOAP web services calls are able to handle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found