Results 1 to 3 of 3

Thread: grabbing user info

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374

    Angry

    I found this code snippet
    Code:
    <%@ Language=VBScript %>
    <%
    
    For Each Key in Request.ServerVariables 
    	With Response 
    		.Write Key & " - " & Request.ServerVariables(key) 
    		.Write "<br><br>" '& vbCrLf 
    	End With 
    Next 
    
    
    %>
    that returns all of the Response key values. But I don't know which one to use to determine if the user has admin rights. Help!!

  2. #2
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149
    You would have to determine in your code whether they have admin right. There is no server variables that contain that information. How you do that is upto you. you could set up a admin table and reference it with there username but thats just a quick thought

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374
    Okay, thanks. I could work around that by setting up groups so that I don't have to have a separate table. But that leads to another question - can I determine which groups a user belongs to?

    Thanks guys for all of your help!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width