Sherri
|
| Posted: 09/22/2004, 10:45 AM |
|
I need some help setting the session variable. I'm using basic authentication through IIS so that my users have to use their active directory ID and PW. Here's what I want to do:
I'm captuing the AUTH_USER variable like this, and putting the result in a text box:
Request.ServerVariables("AUTH_USER")
I want to set the session.userID variable to be that textbox value, then pull records according to that session.userID.
Any help is greatly appreciated.
Thanks.
Sherri
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 09/22/2004, 10:52 AM |
|
If I understand you correctly, you can create session variables using the above code that you have, for example:
Session("UserID") = Request.ServerVariables("AUTH_USER")
You can do this in the Before Insert/Update or After Insert/Update events.
I'm not sure though what you mean by "pull records according to that session.userID". Do you want to creat a grid that shows all records for that user, or do you want to replace the session variable with another value based on AUTH_USER?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|