CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Set Session Variable

Print topic Send  topic

Author Message
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
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.

MS Access to Web

Convert MS Access to Web.
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.