Skip to main content
Inspiring
October 27, 2006
Question

aborting a session? VBScript/ASP

  • October 27, 2006
  • 6 replies
  • 637 views
Hi,

I have a session variable which is passed from page to page of a form
submitting process. There are other session variables on the pages.

I want to be able to abort one of the sessions, not all. Is that possible?

Also, I've not used Session.Abort before...does the abort occur for every
subsequent page? I want to display the session variable on the page that
contains the abort script. Again, I'm not sure if that's possible.

Tried ASP FAQ, Google, etc but couldn't seem to find much on this.

Thanks.
Nath.


This topic has been closed for replies.

6 replies

Inspiring
November 25, 2006
Hmm...my sessions aren't being removed (aborted, whatever!). :o)
Is there anything immediately wrong with the following, that you can see?

I am using the WebAssist eCart SessionID to pass to our payment provider
and, to display this on a page, you'd use this:

<%=Session.SessionID%>

So I added the following on my return page from the PSP because I noticed
that, even though we were jumping out to the PSP's URL, the session was
still being stored when we got back to our site:

<%
Session.Contents.Remove("SessionID")
%>

Is this right? Also, where should this be placed? Within the body tag, or
outwith?

Thanks.
Nath.

"RobGT" <rob@lighthouseuk.removeme.net> wrote in message
news:ei4t1f$rn6$1@forums.macromedia.com...
>
>>Just to be clear, you would place the session name within the brackets,
>>right?
>
> No.
> Abandon removes ALL session variables for that particular session entity.
> To remove individual keys from the session entity, use
> contents.remove(key)
>
> Cheers,
> Rob
> http://robgt.com/ [Tutorials and Extensions]
> Firebox stuff: http://robgt.com/firebox
> Skype stuff: http://robgt.com/skype
> SatNav stuff: http://robgt.com/satnav
>
>


Inspiring
October 30, 2006

>Just to be clear, you would place the session name within the brackets,
>right?

No.
Abandon removes ALL session variables for that particular session entity.
To remove individual keys from the session entity, use contents.remove(key)

Cheers,
Rob
http://robgt.com/ [Tutorials and Extensions]
Firebox stuff: http://robgt.com/firebox
Skype stuff: http://robgt.com/skype
SatNav stuff: http://robgt.com/satnav



Inspiring
October 28, 2006
Hi Lion,

Just to be clear, you would place the session name within the brackets,
right?

<%
Session.Abandon(nameofsession)
%>

...or?

<%
Session.Abandon("nameofsession")
%>

Cheers
Nath.

"Lionstone" <HIDElionstone@HIDEhushmail.com> wrote in message
news:ehtc7i$cfm$1@forums.macromedia.com...
> Or Session.Abandon() to get rid of the whole thing.
>
> "tradmusic.com" <sales@NOSHPAMtradmusic.com> wrote in message
> news:ehsomu$ip6$1@forums.macromedia.com...
>> Thanks Jules. I was searching for "Session Abort", and similar, and
>> wasn't having much luck!
>>
>> <%
>> Session.Contents.Remove "nameofsession"
>> %>
>>
>> Cheers.
>> Nath.
>>
>> "Julian Roberts" <nospam@charon.co.uk> wrote in message
>> news:ehsnns$hku$1@forums.macromedia.com...
>>> Have a google for session contents remove
>>>
>>> --
>>> Jules
>>> http://www.charon.co.uk/charoncart
>>> Charon Cart 3
>>> Shopping Cart Extension for Dreamweaver MX/MX 2004
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>


Inspiring
October 27, 2006
Or Session.Abandon() to get rid of the whole thing.

"tradmusic.com" <sales@NOSHPAMtradmusic.com> wrote in message
news:ehsomu$ip6$1@forums.macromedia.com...
> Thanks Jules. I was searching for "Session Abort", and similar, and
> wasn't having much luck!
>
> <%
> Session.Contents.Remove "nameofsession"
> %>
>
> Cheers.
> Nath.
>
> "Julian Roberts" <nospam@charon.co.uk> wrote in message
> news:ehsnns$hku$1@forums.macromedia.com...
>> Have a google for session contents remove
>>
>> --
>> Jules
>> http://www.charon.co.uk/charoncart
>> Charon Cart 3
>> Shopping Cart Extension for Dreamweaver MX/MX 2004
>>
>>
>>
>>
>>
>
>


Inspiring
October 27, 2006
Thanks Jules. I was searching for "Session Abort", and similar, and wasn't
having much luck!

<%
Session.Contents.Remove "nameofsession"
%>

Cheers.
Nath.

"Julian Roberts" <nospam@charon.co.uk> wrote in message
news:ehsnns$hku$1@forums.macromedia.com...
> Have a google for session contents remove
>
> --
> Jules
> http://www.charon.co.uk/charoncart
> Charon Cart 3
> Shopping Cart Extension for Dreamweaver MX/MX 2004
>
>
>
>
>


Inspiring
October 27, 2006
Have a google for session contents remove

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004