|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
GLOBAL.asa
In the global.asa file, can i add sql statement to delete stuffs in my database when a user seesion had ended?
======= Example ======= sub Session_OnEnd sql = "Delete from jobs where ......" set rs = Server.CreateObject("ADODB.recordset") rs.CursorType = 3 rs.CursorLocation = 3 rs.Open sql, Session("Conn"), adOpenDynamic set rs = nothing end sub Can this be accepted ?? |
|
#2
|
|||
|
|||
|
There are some restrictions on what you have access to from global.asa code. I'm not sure you'll have access to Session variables.
If you search the msdn library site there is a pretty extensive global.asa description. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > GLOBAL.asa |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|