Click here to Skip to main content
15,889,281 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: It's probably just me... Pin
Nathan Minier23-Oct-17 6:13
professionalNathan Minier23-Oct-17 6:13 
QuestionRelated to Table in angular 4 material Pin
Munjal Pandya6-Oct-17 22:18
Munjal Pandya6-Oct-17 22:18 
SuggestionRe: Related to Table in angular 4 material Pin
Richard Deeming9-Oct-17 8:55
mveRichard Deeming9-Oct-17 8:55 
GeneralRe: Related to Table in angular 4 material Pin
Munjal Pandya9-Oct-17 17:25
Munjal Pandya9-Oct-17 17:25 
QuestionMVC Edit form with dynamic dropdown list Pin
desanti23-Sep-17 8:45
desanti23-Sep-17 8:45 
AnswerRe: MVC Edit form with dynamic dropdown list Pin
Richard Deeming25-Sep-17 2:26
mveRichard Deeming25-Sep-17 2:26 
QuestionMVC entity framework web page - How to store logged user in a global variable Pin
desanti22-Sep-17 4:12
desanti22-Sep-17 4:12 
AnswerRe: MVC entity framework web page - How to store logged user in a global variable Pin
Richard Deeming22-Sep-17 4:51
mveRichard Deeming22-Sep-17 4:51 
desanti wrote:
how can can I save as global variable

You can't.

"Global" variables (aka static fields) are shared across all threads in your process. That means there would only ever be a single value of that variable across all requests from all users.

Instead, you store an authentication ticket in a cookie, which only applies to requests from the current user. You then use that ticket to authenticate the user.

But you shouldn't be writing that code yourself. You should be using ASP.NET Identity[^] to handle authentication for your application.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: MVC entity framework web page - How to store logged user in a global variable Pin
desanti22-Sep-17 5:55
desanti22-Sep-17 5:55 
GeneralRe: MVC entity framework web page - How to store logged user in a global variable Pin
Richard Deeming22-Sep-17 6:05
mveRichard Deeming22-Sep-17 6:05 
QuestionDigital Signatures Pin
Nathan Minier19-Sep-17 7:08
professionalNathan Minier19-Sep-17 7:08 
QuestionLogin form php,mysql,ajax Pin
Dalee1716-Sep-17 14:55
Dalee1716-Sep-17 14:55 
AnswerRe: Login form php,mysql,ajax Pin
W Balboos, GHB11-Oct-17 5:46
W Balboos, GHB11-Oct-17 5:46 
Questionhtml warning Pin
dcof30-Aug-17 12:10
dcof30-Aug-17 12:10 
AnswerRe: html warning Pin
W Balboos, GHB20-Sep-17 2:18
W Balboos, GHB20-Sep-17 2:18 
AnswerRe: html warning Pin
Member 1349103928-Oct-17 12:56
Member 1349103928-Oct-17 12:56 
QuestionScroll Bar in Popup Window Pin
shahbaz shaikh27-Aug-17 3:37
shahbaz shaikh27-Aug-17 3:37 
QuestionHow do I configure dropzone.js? Pin
Member 1307448726-Aug-17 13:39
Member 1307448726-Aug-17 13:39 
Rant[REPOST]: How do I configure dropzone.js? Pin
Richard Deeming29-Aug-17 2:43
mveRichard Deeming29-Aug-17 2:43 
SuggestionCrystal Reports XI v. IIS 10 Pin
Zimriel11-Aug-17 6:04
Zimriel11-Aug-17 6:04 
GeneralRe: Crystal Reports XI v. IIS 10 Pin
Nathan Minier14-Aug-17 2:03
professionalNathan Minier14-Aug-17 2:03 
QuestionHow do you code an application modal? Pin
charlieg4-Aug-17 12:08
charlieg4-Aug-17 12:08 
AnswerRe: How do you code an application modal? Pin
Kornfeld Eliyahu Peter5-Aug-17 10:02
professionalKornfeld Eliyahu Peter5-Aug-17 10:02 
GeneralRe: How do you code an application modal? Pin
charlieg6-Aug-17 4:15
charlieg6-Aug-17 4:15 
GeneralRe: How do you code an application modal? Pin
Kornfeld Eliyahu Peter6-Aug-17 7:40
professionalKornfeld Eliyahu Peter6-Aug-17 7:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.