|
-
May 18th, 2001, 11:57 PM
#1
Thread Starter
Junior Member
enable cookies problem
Hello I have a bit of a problem
My site works find on pws but when I uploaded onto server i think I have a problem with my global.asa
<script language="vbscript" runat=server>
Sub Session_OnStart
'Shopping cart array
Const cartAttributes = 5
Const maxCartItems = 10
ReDim arrcart(cartAttributes,maxCartItems)
Session("MyCart") = arrcart
Session("cartItem") = 0
End Sub
</script>
from add product.asp page:
Dim scartItem
scartItem = Session("cartItem")
If scartItem = "" Then
Response.Redirect "error.asp?msg=" & Server.URLEncode ("We noticed you do not accept cookies. Please enable cookies to shop.")
end if
My problem is i am getting redirected even though I have cookies enabled.
Has the problem got something to do with where the golbal.asa is position on the sever:
server directory:
databases folder
site1file folder
site2file folder(global.asa file inside this folder)
i.e golbal.asa only relates to site2)
Thanks in advance for any help
mick
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|