Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have this simple code to execute an SQL query

        Dim PretragaAdapter As New mysite.DataSet1Adapters.PRETRAGATableAdapter()
       PretragaAdapter.DeletePoDatumu()

 

It deletes some rows from a table.

When I put this command in a button everything works just fine, and rows get deleted.

 

But I want to put it in Global.asax file in Session_end section, so everytime an session ends, this command gets executed

 

The problem is that this command doesn't work in Session_end event.

I know a session lasts for about 20min, but after couple hours I still don't see any changes in my database.:confused:

Posted

The code is exactly the same.

I don't know where I'm storing my sessions. Probably InProc cause I didn't configure it otherwise.

 

How do I configure it to be stored in SQLServer or StateServer?

 

Does Session_start gets executed if it's configured to be stored InProc?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...