Alireza Noori - (Website)

Bachelor of Science in Computer Science

Software developer

I’m professionally familiar with:

  • Desktop: C# (Winforms, WPF, Metro, etc.), C++, Pascal, Java and VB

  • Web: ASP.Net MVC, PHP, JavaScript, CSS, HTML

  • ...

Visit my website at: https://alireza-noori.com/

5h
comment Use both SQL Server and SQLite in Asp.Net MVC
I thought this would be very straightforward and I'd get a few answers shortly. Instead I got 2 close votes with no explanation!
15h
awarded Popular Question
1d
comment Use both SQL Server and SQLite in Asp.Net MVC
Just to clarify, (because someone voted this for closing), I added the background part for those who are interested to see why I want this. I just want to know how to use SQLite in addition to my current connection to SQL Server
1d
asked Use both SQL Server and SQLite in Asp.Net MVC
1d
awarded Notable Question
Jul
20
comment Tracking daily user visits
I added the code like above (I didn't have CookieAuthenticationProvider but I found its code and added it too) but the function never got hit (the GenerateUserIdentityAsync function). Am I missing something else?
Jul
15
awarded Popular Question
Jul
12
comment Tracking daily user visits
Acutally I have updated the Identity to 2 but the code in ConfigureAuth function is like this: app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, LoginPath = new PathString("/users/login") }
Jul
12
comment Tracking daily user visits
I found a similar code in SignInAsync method but it wasn't called for signed-in users.
Jul
12
comment Tracking daily user visits
Maybe it's because I've upgraded my MVC project from 4 version but I can't find this method. I also searched whole project (using`Ctrl+,`) but didn't find this.
Jul
11
comment Tracking daily user visits
There is a possibility that the user visits the website without going to homepage. I would for a lot of websites. Also, that wouldn't be so good performance-wise.
Jul
11
comment Tracking daily user visits
Since this is a very sensitive area, I'd stay away from doing it on my own.
Jul
11
comment Tracking daily user visits
I have added my code to the HTTP POST version of the Login action in UsersController. The user has to explicitly call the Login action (using the login page) to run my code. I don't know how to examine this if they've already logged in few days earlier with the "Remember me" checkbox (hence, not loding the login page, they just don't need to)
Jul
11
comment Tracking daily user visits
Thanks but I'm already doing this. My problem is that I can't keep track of the user if they're already logged in yesterday (or before that) and are visiting my site without hitting the Login action. (if they've check the "remember me" checkbox)
Jul
11
comment Tracking daily user visits
@LouisvanTonder When a user logins, I set the DateTime.Now as their latest login and check if they have logged in yesterday. If so, I add 1 to the consecutive logins, otherwise I set it to zero. Pretty straightforward.
Jul
11
comment Tracking daily user visits
Well, I don't exactly know how the Asp.Net Identity handles this. I can guess that it's being handled using a cookie which holds the authentication info. I don't know how I can examine this info. I don't want to check for it every single time a user loads a page. Also I want to handle cached pages properly.
Jul
11
asked Tracking daily user visits
Jul
10
comment Moving-away animation in wpf usercontrol list
@McGarnagle Thank you. The WPF Disciples Blog Roll 3D application of their sample uses the Panel3D control which is basically what I wanted. Thanks again. Please add an answer so I can close this question.
Jul
9
comment Send/Receive complex object on SignalR
Thank you very much. That solved the problem. I tried this without adding types to the template but it didn't work. Didn't think of this one.
Jul
9
accepted Send/Receive complex object on SignalR
1 2 3 4 5