Need Help same Login and Admin logic of users using in dotnetfunda

Posted by Naeem2049 under Regular Expressions on 3/2/2011 | Points: 10 | Views : 1636 | Status : [Member] | Replies : 30
Hi All,

I want to use the same an excellent logic used in .netfunda of Login process which include Admin , Users and also assign the different rights to different users by Admin....

I have web application developed in Visual studio 2008 using SQL Server 2008 .......

I have no idea how this logic will work and which tables need to used in this Login logic.........


Please Help me in this issue.......

I think may be the real example will help much better to solve and understand this issue.

Regards
NAEEM




Responses

Posted by: Vforvijay on: 3/2/2011 [Member] Starter | Points: 25

Up
0
Down
hi...
In the user table you can set a new column treat as flag,For admin enter change the column as 'y',other user set as 'N'
and also assign some privilege for the user table ...

and also try this links to avoid same user...
http://vbdotnetaddict.blogspot.com/2011/01/avoid-multiple-user-to-login-at-same.html


Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/2/2011 [Member] Starter | Points: 25

Up
0
Down

Hi,

It's fine but i need to understand Login Logic from scratch ...

From Start how can i do this

Thanks for Rreply

Regrds
NAEEM


Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/2/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
ok guys let me explain to you how it works. This is an example of the powerful login System.

Normally it should work like this. You will have a table that have all the users info. This does not have an indication of whether a user is an administrator or not. and you will have another table that carries the Permissions. This can be a name of an item in a menu or a a button in your page or anything and you will have a table that will carry the groups. The Groups are linked to the Permission and the users are linked to the Group. if you remove a permission login in a table that contains the permissions linked to a certain group them that group will not be able to login. i will one day write an article about this approach and it is a very flexible approach.

Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 3/2/2011 [Member] Starter | Points: 25

Up
0
Down
excellent post ...

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/2/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
:)

Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 3/2/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Thanks for sharing this info with us... This really adds value to all...

Thanks and Regards
Madhu

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/2/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
You are most welcome. :)

Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 3/2/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Nice one my dear friend :) really just waiting for your sample code :D

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/2/2011 [Member] Starter | Points: 25

Up
0
Down


Hi,

Nice one... Actually we are waiting for the sample code of the login logic ......

Very Thanks for this

Regards
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/2/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
i will create a nice hello world example tomorrow and i will try to publish it by Monday

Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/4/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Good one Vuyiswamb

Thanks
Karthik
www.f5Debug.net

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/5/2011 [Member] Starter | Points: 25

Up
0
Down

Ok Vuyiswamb,

we are waiting

Thanks

regards
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down

Hi,

Waiting for sample code for login logic

Thanks

Regards
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/7/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
I am half done. I will finish the article tonight and do the example project on Tuesday and post it on Wednesday

Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/9/2011 [Member] Starter | Points: 25

Up
0
Down

Hi Vuyiswamb,

We are waiting for your upload......

Please Complete it as soon as possible

Thanks
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/9/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
My Dear friends, i am done with the article, i will do the example project tonight when i get home, it will be available tomorow.

Thanks


Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 3/9/2011 [Member] Starter | Points: 25

Up
0
Down
hi...
we are looking for you article................

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/12/2011 [Member] Starter | Points: 25

Up
0
Down

Hi Vuyiswamb,

We are waiting for your upload......

Thanks
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsolvers on: 3/12/2011 [Member] Starter | Points: 25

Up
0
Down
Here we go with Simple DB strcutire

Table1
Users
UserID
Name
Password
GroupID
IsActive

Table2
Group
GroupID
Name

Table3
GroupRights
GroupID
RightID

Table4
Rights
RightID
Name


Basically you will retrieve the data from database based on all the above tables and finally you will know which user belongs to which group and what permission he has



Best Regards,

VG
www.TeacherJi.com

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/13/2011 [Member] Starter | Points: 25

Up
0
Down


Hi,

Thanks for sharing DB structure but it will be more helpful if you share this problem in more detail...

It will be more helpful by sharing sample application on this .......

Thanks for Advance Help

Regards
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsolvers on: 3/13/2011 [Member] Starter | Points: 25

Up
0
Down
let me code and send it across

Best Regards,

VG
www.TeacherJi.com

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/13/2011 [Member] Starter | Points: 25

Up
0
Down

Thanks again

Regards
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/13/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Good Day ,

i have submitted the article. i am just waiting for sheo to approve it.

thanks for your patience


Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/14/2011 [Member] Starter | Points: 25

Up
0
Down

HI,

Ok... still waiting for article....

Thanks

NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/14/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
I have submitted the article, i am not sure why its not Up. let me check.

Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/14/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
here is the Link
http://www.dotnetfunda.com/articles/article1250-permission-module-or-security-module-in-aspnet-or-silverlight-.aspx

Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/15/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Good article Vuyiswamb!!!

Thanks
Karthik
www.f5Debug.net

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/15/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
You are welcome. thank you for posting at Dotnetfunda.

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naeem2049 on: 3/16/2011 [Member] Starter | Points: 25

Up
0
Down

HI Vuyiswamb,

Good Article.....

Thanks
NAEEM

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/16/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Thank you my friend.

Thank you for posting at Dotnetfunda
[Administrator]

Naeem2049, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response