FoalTS V2: UseSessions - Generates session when requesting static files e.g. favicon.ico
See original GitHub issueBeen 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:
- Created 3 years ago
- Comments:15 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 😦
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