right on, thank you
this might call 4 a thinking session on the "thrown" haha
----- Original Message -----
From: "Jeff Garza" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 2:47 PM
Subject: Re: easier in cf then asp, but i need it in asp
> You'll have to use a global.asa (similar to application.cfm) to initialize
> and hold session variables for the authenticated user, and include
something
> like this in the Session_OnStart method...
>
> ' NT challenge response. Make sure the user is logged in to the
> ' network.
> If Request.ServerVariables("LOGON_USER") = "" Then
> Response.AddHeader "WWW-Authenticate", "ntlm"
> Response.AddHeader "WWW-Authenticate", "basic"
> Response.Status = "401 Unauthorized"
> Response.End
> ElseIf Request.ServerVariables("LOGON_USER") <> "" AND
> Session("Authenticated") = "False" Then
> ' Do Database Insert Here of Login and DateTime...
> ' Set authenticated session var to true...
> Session("Authenticated") = "True"
> End if
>
> Maybe this can get you started...
>
> HTH,
>
> Jeff
>
> ----- Original Message -----
> From: "Dave Lyons" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 08, 2003 11:59 AM
> Subject: easier in cf then asp, but i need it in asp
>
>
> Sorry for posting this here but no one seems to know on the asp boards.
> I pretty much have this figured out in cf but not as easy in asp.
> I have a clients site that is in asp and they need to track when a person
> logs in
> for example, they need to be able to pull up employee "A" and see their
> login history, As they are supposed to be logging in at certain intervals.
> They dont want any additional pages or buttons to push, so when an
employee
> logs in it also inserts a new entry into the db table called
> "tblTrackLogins"
> I dont believe you can do a login and insert at the same time in ASP. The
> only way I have really been able to do this is to post the login form to
> another page and then have them hit a submit button to insert it but they
> dont want that.
> The only entry I really need to pull is their "username" and then just
have
> the db insert the "Now()" when created.
> BTW, ASP & Access 2000
>
> thanks!
>
> Dave
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4