CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Login with redirect

Print topic Send  topic

Author Message
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.
View profile  Send private message
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.
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.