mp
|
| Posted: 10/22/2002, 12:52 PM |
|
Hi
I need to login in by clicking on a link to the users table
Can I do this and how
ccs 1.0.7
PHP
|
|
|
 |
Alex Alexapolsky
|
| Posted: 10/23/2002, 4:49 AM |
|
What is the purpose of login if user does not enter his password ?
|
|
|
 |
Andrew B
|
| Posted: 10/23/2002, 5:13 PM |
|
Well, it sounds like you want to do user impersonation for an admin user. We could have done that as well, but we eventually forced them to log in as admin, go grab the username & pw, and then log in as that person. If the data on the site was of any real importance we wouldn't even let them do that.
It would be fairly easy to do, I believe. The easiest way would probably be to create a second login page and put your custom code in that to process the querystring and do the login.
And even easier way (Assuming that you don't mind being logged out of admin) would be to create a second page that simply sets the session variables associated with that user. You have access to every user's details as an admin, so why not just pass the userid to a special page that sets Session("UserID") & Session("UserLevel"), then redirects the admin back to the normal page.
p.s. I don't know if those are the actual CCS session var names or not :), plus that isn't php, it's asp :)
|
|
|
 |
James
|
| Posted: 10/23/2002, 6:18 PM |
|
Wonder if you could simplify that bit about passing through login.
I have a situation where i would like clients to be able to login from there site visit a couple of pages on my site to enter data and then be redirected back to there site....I am using ASP and ACCESS
|
|
|
 |
|