Information générale
Catégorie:
Active Server Page
Titre:
Global.asa - Session_OnEnd
Hi All,
I'm working on a project where a users shopping cart details are stored in a session array called Session("ShopCart").
The shopping cart allows the item to be in only one users cart at a time. I'm using a application array called Application("CartItems") to do this.
When a Item ID is added to a users Shopping cart, Session("ShopCart"), I also add the item ID to the application, Application("CartItems").
If the item ID is contained within Application("CartItems"), I don't display the item in the store front.
This all seems to be working fine.
However, I would like/require, So When the users session ends. The items within Session("ShopCart") are removed from Application("CartItems").
In the global.asa file within "Sub Session_OnEnd", I have tried Server.Execute("pagetodothis.asp?cart=" & Session("ShopCart") & ""), storing the Session("ShopCart") details withing the QueryString.
I have also tried using Server.Transfer("pagetodothis.asp?cart=" & Session("ShopCart") & ""). None of these have work.
Does anybody know away to do this?
Any help is greatly appreciated.
Kind Regards,
Tarran Walker
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement