J
Jeremy
I am implementing a shopping cart on a project and am getting extremely
frustrated because my session variable's are not persisting. After
doing some research I may have discovered the source, I realized that
my session_end event is firing on almost every page. The session_end
event isn't supposed to fire on every page is it? If not, what are some
things I can do to stop this behavior? Thanks in advance for your
input!
Code Below:
Function makeCart()
'Shopping Cart
Dim objDT As System.Data.DataTable
objDT = New System.Data.DataTable("Cart")
objDT.Columns.Add("ID", GetType(Integer))
objDT.Columns("ID").AutoIncrement = True
objDT.Columns("ID").AutoIncrementSeed = 1
objDT.Columns.Add("Quantity", GetType(Integer))
objDT.Columns.Add("Product", GetType(String))
objDT.Columns.Add("Cost", GetType(Decimal))
Session("Cart") = objDT
End Function
- Jeremy
frustrated because my session variable's are not persisting. After
doing some research I may have discovered the source, I realized that
my session_end event is firing on almost every page. The session_end
event isn't supposed to fire on every page is it? If not, what are some
things I can do to stop this behavior? Thanks in advance for your
input!
Code Below:
Function makeCart()
'Shopping Cart
Dim objDT As System.Data.DataTable
objDT = New System.Data.DataTable("Cart")
objDT.Columns.Add("ID", GetType(Integer))
objDT.Columns("ID").AutoIncrement = True
objDT.Columns("ID").AutoIncrementSeed = 1
objDT.Columns.Add("Quantity", GetType(Integer))
objDT.Columns.Add("Product", GetType(String))
objDT.Columns.Add("Cost", GetType(Decimal))
Session("Cart") = objDT
End Function
- Jeremy