Question: asp.net 5 Session_start at startup file gone? how can I use it?

Question

asp.net 5 Session_start at startup file gone? how can I use it?

Answers 1
Added at 2016-01-09 22:01
Tags
Question

How do I use Session_Start, Session_end and Application_BeginRequest can't find it at Startup file.

Answers
nr: #1 dodano: 2016-01-10 10:01

HttpModules have been replaced by middleware in ASP.Net 5
Session_Start and Application_BeginRequest are methods of global.asax which is an Http_Module.
So, to replace Application_BeginRequest you can write your own middleware.
By default, there isn't session in ASP.Net 5. You must add and configure the session middleware in your Startup to use it.

Source Show
◀ Wstecz