Https://github.com/uliian/SessionExtentionStore
A Redis-based session storage extension solution that addresses the limitations of session in ASP and the limitations of cross-application use
- 9 commits
- 1 Branch
- 0 Releases
- 1 Contributor
- C # 99.3%
- ASP 0.7%
C #ASP Branch: Master sessionextentionstore/
Merge branch ' master ' of https://github.com/uliian/SessionExtentionSt ... ... ..
Latest CommitF11b84d8f4Uliian authored on 5 Apr
|
Sessionextention |
Renamed |
9 months ago |
|
Sessionextentionstore |
Renamed |
9 months ago |
|
Packages |
Session Extended Storage |
9 months ago |
|
. gitattributes |
Initialize the submission to add the default. GitIgnore and. gitattribute files. |
9 months ago |
|
. gitignore |
Initialize the submission to add the default. GitIgnore and. gitattribute files. |
9 months ago |
|
Readme.md |
Update readme.md |
9 months ago |
|
SessionExtention.sln |
Renamed |
9 months ago |
|
SessionExtention.sln.DotSettings |
Session Extended Storage |
9 months ago |
readme.mdSessionextentionstore
A Redis-based session storage extension solution that addresses the limitations of session in ASP and the limitations of cross-application use
The native session solution has difficulties and scalability across applications, and the Sessionextentionstore solution is dedicated to solving the problem. This is a simple processing solution that allows you to resolve multiple application data interactions to Sessionextentionstore and is particularly useful in solutions that provide SSO using shared sessions.
I'm using the session-like approach, which is tied to SessionID, so you can rely on the session mechanism to bind the user and the extension together.
How to use: Configure Web. config to add the following configuration nodes:
<system.web> <httpmodules> <a DD name= "Sessionextentionstore "type=" Sessionextentionstore.updatettl "/> </httpmodules> <system.web> <appsettings> <add key= "Sessionextention" value= "127.0.0.1"/> </appSettings
In the case of an MVC environment, create a controller parent class that derives from the controller class, and if WebForm establishes a parent class derived from System.Web.UI.Page, the parent class joins the following attribute definitions:
Private Storecontainer _store; Public Storecontainer Store { get { if (! String. IsNullOrEmpty (Session.SessionID)) { session["__tempcreate__new Storecontainer ( Session.SessionID)); } }
All other pages derive from the two parent classes and can then be stored using the store property, just as you would with a session. Because of the type information stored in the content, if the data type with the non-mscorlib band needs to be shared among multiple applications, the Store.getjson (string key) or the GetValue (string key) method needs to be used in subclasses.
My first open source project I can use, I have started to use the project I am responsible for, I hope to have a friend to see the support and give valuable advice. Thank you!
C # Redis Distributed session Storage