Abandon Session

R

rn5a

In a MS-Access database application, the following code resides within
the *Catch* block of a *Try....Catch* block:

=========================================
Try
'some code
Catch ex As OleDbException
If (ex.ErrorCode = -2147467259) Then
Response.Write("ID: " & Session.SessionID & "<br>")
Session.Abandon()
Response.Write("ID: " & Session.SessionID)
End Try
=========================================

The first Response.Write statement spits out the current
SessionID....that's fine but the second Response.Write statement also
spits out the same SessionID as the first Response.Write statement had
produced.

Shouldn't the second Response.Write statement generate a different
SessionID since I am abandoning the Session after the first
Response.Write statement?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top