Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Protected folder login details

Reply
Thread Tools

Protected folder login details

 
 
JW
Guest
Posts: n/a
 
      09-28-2003
Hi,

I have a folder that is protected, the users login with their unique
username and password, these are held in a text file.

Is this information logged in a way that I can use the login name as a
variable for use on my page, such as if I login as Jon the page can display
"Logged in: Jon"

The type of login I'm referring to can be found at
http://control.fasthosts.co.uk:6998/

Many thanks

Jon


 
Reply With Quote
 
 
 
 
Snark Hunter
Guest
Posts: n/a
 
      09-30-2003
"JW" <jon_webb@#NOSPAM#yahoo.com> wrote in message news:<bl7gu3$cmf$>...
> Is this information logged in a way that I can use the login name as a
> variable for use on my page, such as if I login as Jon the page can display
> "Logged in: Jon"


Have you tried request.getHeader("auth_user") ?

Snark
 
Reply With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      10-01-2003
I tried:
<%
TheID = request.getHeader("auth_user")
response.write TheID
%>

to test it and got

-------
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'getHeader'
-----

So I guess that's no good ????

Thanks

Jon
> > Is this information logged in a way that I can use the login name as a
> > variable for use on my page, such as if I login as Jon the page can

display
> > "Logged in: Jon"

>
> Have you tried request.getHeader("auth_user") ?
>
> Snark



 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a
 
      10-01-2003

"JW" <jon_webb@#NOSPAM#yahoo.com> wrote in message
news:ble8et$fmk$...
> I tried:
> <%
> TheID = request.getHeader("auth_user")
> response.write TheID
> %>


Assuming you mean a Windows Login.......

<% TheID = Request.ServerVariables("AUTH_USER") %>
<%= TheID %>

If it is some other type of custom built Login, then you will have to
"Roll your own" way to test for it.

--

Phillip Windell [CCNA, MVP, MCP]

WAND-TV (ABC Affiliate)
www.wandtv.com


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login using NT login details from web form problems DavidADEW ASP .Net 2 09-01-2006 03:10 PM
Show Details/Hide Details link button =?Utf-8?B?Sm9l?= ASP .Net 1 03-13-2006 04:51 PM
Folder Details Martin Knight Computer Support 1 09-12-2004 12:05 PM
Warning "Re: Your details" & "Re: My details" Joe Lee Computer Support 3 05-17-2004 05:08 PM
Difference between "Protected WithEvents myClassName" And "Protected myClassName" ? Andreas Klemt ASP .Net 2 07-05-2003 12:51 AM



Advertisments