duplo1
Posts: 67
|
Posted: 09/04/2008, 10:13 AM |
|
I have to write a new login page for our intranet. Once the user has typed in the Login and Password, I need him to be redirected to the start page according to his security level.
For Expample:
User 1 = Security Level 1 - default page after login = default1.asp
User 2 = Security Level 2 - default page after login = default2.asp
User 3 = Security Level 3 - default page after login = default3.asp
How do I do that ?????? Please help.
|
|
|
Tuong Do
|
Posted: 09/04/2008, 7:10 PM |
|
If you are not redirect your login page to a particular page then it will
(by default) redirect to it self after login
So in the before show event of the login page
If session("GroupID") = "1" Then
response.Redirect "Pages1.asp"
ElseIf session("GroupID") = "2" Then
response.Redirect "Pages2.asp"
ElseIf session("GroupID") = "3" Then
response.Redirect "Pages3.asp"
End if
"duplo1" <duplo1@forum.codecharge> wrote in message
news:648c017461cfb7@news.codecharge.com...
>I have to write a new login page for our intranet. Once the user has typed
>in
> the Login and Password, I need him to be redirected to the start page
> according
> to his security level.
>
> For Expample:
>
> User 1 = Security Level 1 - default page after login = default1.asp
> User 2 = Security Level 2 - default page after login = default2.asp
> User 3 = Security Level 3 - default page after login = default3.asp
>
> How do I do that ?????? Please help.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
duplo1
Posts: 67
|
Posted: 09/05/2008, 10:16 AM |
|
THANK YOU !!!! Will try if that works.
|
|
|
Oper
Posts: 1195
|
Posted: 09/06/2008, 6:04 AM |
|
duplo it will work like tuong do said
just instead of session("groupid) use ccgetgroupid() function
if ccgetgroupid() = "1" then.........................................
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
|
|