CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Redirect

Print topic Send  topic

Author Message
freddie
Posted: 05/24/2004, 8:00 PM

I need a little help with Login,

.ASP 3.0
MS Access
CCS


1)Login Page
---Type in username & password, be redirected to your page, depending on the group number,( Ex. Sales , Group 1 go to SalesPage.asp / Customers, Group 2 go to CustomerPage.asp)
2)Redirected Page
---Put the username at the end of the link, but with password, (Ex. Salespage.asp?username=ABCD,) Also i need it to be secure, i do not want someone to be able to type someone elses username

Thanks in Advance8-)8-)
peterr


Posts: 5971
Posted: 05/24/2004, 8:58 PM

On your Login page in DoLogin button's OnClick event add custom code that redirects the user to the appropriate page. For example:
if Session("GroupID")=2 then Redirect = "Page2.asp"
You can lookup the username using CCDLookup and append it to the above URL as well. If you don't want it to be shown then you may need to create a new session variable, for example:
Session("UserName") = CCDLookup(...)
The UserID is automatically stored in the Session("UserID") therefore I'm not sure if you really need to store/pass the UserName as well?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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