Im developing asp.net c# web site where i want to make user authentication. without any roles or something.
i have database with user table where i store all user data, this table have relationship with many other tables.
I like asp.net from authentication controls, but problem is that it have her custom database lots of tables, views and stored procedures, i need more simpler solution for my problems. All i want is to make secure remember me and any time check if user is logged in and get user name or id. Of course i tried custom relationship provider but i could not changed asp users table to my user table .
So I just need secure remember me function and to get user id any time.
You can leverage forms authentication without having to stick with the default way of storing credentials. Just check manually for user existence (check password, whatever) on login and manually form an auth cookie and associate it with an auth ticket. You will be able to access to the current user via the HttpContext.User property.