Comments (3)
What do you mean by session ID?
from sessionstorage.
In the old .Net framework 4.8 code I am using the following to track a user's session in a SQL table with some other values
var sessionId = HttpContext.Current.Session.SessionID;
Code would then fetch a record if if existed from the table, or create the record if it didn't.
In the rewrite I am working on, I was looking for something similar as a quick and dirty replacement. I had to go and look at this code up again and it looks like I found a different way of handling this.
I am still looking for a drop in replacement for Elmah though :-)
Thanks for replying.
Cheers
Mark
from sessionstorage.
I'm glad you e found a solution 🙂.
Just for reference, browser session storage has nothing to do with .NET sessions, it's just a key/value store in the browser and this library provides interop with it.
from sessionstorage.
Related Issues (20)
- Is this a good use library to store the JWT and deal with AuthenticationStateProvider? HOT 1
- [Question] Using System.Text.Json.JsonSerializer.SerializeToUtf8Bytes HOT 3
- [Bug] Session Storage Limit HOT 6
- [Feature Request] Cancellation Token support HOT 1
- Could the dependency on bUnit.Core be removed? HOT 1
- [Bug]GetItemAsync and SetItemAsync throw System.Threading.Tasks.TaskCanceledException: 'A task was canceled.' HOT 2
- [Feature Request] .NET6 HOT 2
- [Feature Request] TestExtensions - ISyncSessionStorageService HOT 1
- [Question] Serialize internal properties? HOT 1
- "Duplicate Tab" issue. HOT 1
- [Bug]Different Blazor Server apps on same web server can share session values HOT 3
- [Bug] SetItemAsync throws Microsoft.JSInterop.JSDisconnectedException: JavaScript interop calls cannot be issued at this time. HOT 1
- AddBlazoredSessionStorage() add public setter for options.JsonSerializerOptions
- [Bug] SessionStorage Value Not Persisting on Page Refresh HOT 1
- How do I removed a variable stored in local storage from a Blazor Server App? HOT 3
- [Question] Does accessing session storage work in `OnInitializedAsync` with render mode `Server(prerender=false)`?
- blazored.sessionstorage is missing NuGet package README file
- session.GetItemAsync("authToken") - does not return the value nor does it throw an exception
- [Question] Get sessions values in ASP Controllers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sessionstorage.