Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

interpretation problem? (Access ASP)

Status
Not open for further replies.

jimmidopolus

Technical User
May 9, 2003
10
IN

I've set up a site using ASP vbScript pages with an MS Access database for only a few users. User logs in according to values stored in database table and sets their userID as a session variable.

The restricted pages work by only allowing access using a vbScript IF statement:

If session("userID")="A" or session("userID")="B" then...

Pages work on local machine and another machine tested upon. However user B's machine won't let him see the content unless he's logged in as User A.

Assume it may have something todo with his browser settings (network Win2000) but can't see anything obvious.

Any ideas welcome

thanks and regards

jimmid

Regards

james
 
Whilst new to ASP. In Access VBA there is a function called
Environ() which can capture the username
environ(username)

Could you pass this instead

Jason
 
I doubt that it has to do with browser settings if it works for him when he logs on as userA. It's got to be a bug in your code. Please post.
 
Veep

It is simply (within VBscript tags):

If session("userID")="A" or session("userID")="B" then...

Given I have got it to work on other machines, I've ruled out the bug in the code. It's difficult for me to recreate because I'm a few hundred KMs away and haven't experienced the error myself.

Just hoped it might jog someone's mind. Thanks for your help.


Regards

james
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top