Reply
asp script in global.asa
Old 04-02-2005, 07:50 AM asp script in global.asa
numbenator's Avatar
Ultra Talker

Posts: 441
Location: London
Trades: 0
Hi,
I ve go the below aspp code? in a gloabl.asa file.
It's not working though.
Has anyone got any ideas.

(if i run in own asp file. code works fine and record is deleted.)
I have global.asa in the route directory of homepage

Code:
<script language="vbscript">

sub Session_OnEnd
   removeLogin
end sub

sub removeLogin
  Set Conn = Server.CreateObject("ADODB.Connection") 
  Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/database.mdb")
   Set RS = Server.CreateObject("ADODB.RecordSet")
  SQL = "delete from PNETLOGGED where PNETUSERNAME = '"&"Webman"&"'"
  Set RS = conn.Execute(SQL)
  Conn.close
  set RS = nothing
  set Conn = nothing
end sub


</script>
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
When You Register, These Ads Go Away!
Old 04-04-2005, 05:57 AM
numbenator's Avatar
Ultra Talker

Posts: 441
Location: London
Trades: 0
perhaps i should add.
I know the actual script works,
However want to know that the syntax for defining asp script in global.asa file is correct.

cheers for your time.
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to asp script in global.asa
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.08994 seconds with 13 queries