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 Advance
|
|
|
 |
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 |
 |
 |
|