Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: cookies error

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cookies error

    i typed this code :

    Response.cookies("Counted")="true"
    Response.cookies("Counted").Expires="july 4, 2004"

    then i had this error:

    Error Type:
    Microsoft VBScript runtime (0x800A000D)
    Type mismatch: 'Expires'

    it was working before but now dosen't , i don't know why?
    i installed .net framework and visual studio.net is that the reason
    Last edited by ahmedsoliman; 02-13-2003 at 04:59 PM.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    plz

  • #3
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    Do you have the response.cookie commands before your <html> tag? Try:

    Code:
    Response.cookies("Counted").Expires=#july 4, 2004#
    http://www.w3schools.com/asp/asp_cookies.asp

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it works with two # around date , thank you , but i dont know why? although " july,4,2003" is right and it was working before.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's the way you're referring to the date. If you google it there are many solutions for this.

    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •