Hi, Please can anyone let me know.we have a login page and i want to redirect the user based on login info like say user A,has access to application A and there is user B and has access to application B and there is a user C has access to both A & C.How
can i achieve this using session variables and we dont have any role based as of now.Below is the code.Please i really appreciate if anyone can help me. Thanks!!
we have a login page and i want to redirect the user based on login info like say user A,has access to application A and there is user B and has access to application B and there is a user C has access to both A & C.How can i achieve this using session variables
and we dont have any role based as of now.Below is the code.Please i really appreciate if anyone can help me.When i go in debug mode i see that User A,ApplicationName XYZ and Category ABC.I think i am doing something wrong in the highlighted code below.Please
can anyone suggest me?
No offense, but looking at your code it seems like you don't have a strong grasp on the moving parts of ASP.NET. I'd suggest spending a lot of time reading up on the different pieces that are: 1) forms authentication, 2) membership, 3) roles, and 4) session
-- they are all different and separate. Search for MSDN and those topics.
r24
Member
8 Points
31 Posts
regarding page redirect in login page
Nov 14, 2012 01:25 AM|LINK
Hi, Please can anyone let me know.we have a login page and i want to redirect the user based on login info like say user A,has access to application A and there is user B and has access to application B and there is a user C has access to both A & C.How can i achieve this using session variables and we dont have any role based as of now.Below is the code.Please i really appreciate if anyone can help me. Thanks!!
BrockAllen
All-Star
28094 Points
4997 Posts
MVP
Re: regarding page redirect in login page
Nov 14, 2012 01:38 AM|LINK
you might want to format your post/question.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
r24
Member
8 Points
31 Posts
Re: regarding page redirect in login page
Nov 14, 2012 01:45 AM|LINK
Thanks..
we have a login page and i want to redirect the user based on login info like say user A,has access to application A and there is user B and has access to application B and there is a user C has access to both A & C.How can i achieve this using session variables and we dont have any role based as of now.Below is the code.Please i really appreciate if anyone can help me.When i go in debug mode i see that User A,ApplicationName XYZ and Category ABC.I think i am doing something wrong in the highlighted code below.Please can anyone suggest me?
oned_gk
All-Star
36172 Points
7370 Posts
Re: regarding page redirect in login page
Nov 14, 2012 01:51 AM|LINK
When goto login page include returnurlquery string
response.redirect("~/login.aspx?&returnurl=" & request.url)
in login page, after success login then
response.redirect(request.querystring("returnurl"))
Suwandi - Non Graduate Programmer
r24
Member
8 Points
31 Posts
Re: regarding page redirect in login page
Nov 14, 2012 02:30 AM|LINK
Thanks..but how does that satisfy what i am asking..like based on application name..i want to redirect the page?
BrockAllen
All-Star
28094 Points
4997 Posts
MVP
Re: regarding page redirect in login page
Nov 14, 2012 03:11 AM|LINK
No offense, but looking at your code it seems like you don't have a strong grasp on the moving parts of ASP.NET. I'd suggest spending a lot of time reading up on the different pieces that are: 1) forms authentication, 2) membership, 3) roles, and 4) session -- they are all different and separate. Search for MSDN and those topics.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
r24
Member
8 Points
31 Posts
Re: regarding page redirect in login page
Nov 14, 2012 04:45 PM|LINK
Thanks all..offense or defense..but i solved my own issue..Thanks!!