Web Developer - Safari site login (cookie?) issue

Discussion in 'Mac Apps and Mac App Store' started by JohnPerth, Aug 13, 2007.

  1. JohnPerth macrumors newbie

    Joined:
    Aug 13, 2007
    #1
    Hi, I am hoping that someone here can help me.

    I have developed a site in ASP. It works fine on my Windows PC on IE and Firefox but on Safari on an Apple I can't log in.

    When I view the cookies on Safari, the other cookies are names ".mysite.com"
    but the cookie for the site I developed has the "www" in front of the cookie name. ie "www.mysite.com" .

    Has anyone run into this problem before or know how to fix it?

    Thanks,

    John.
     
  2. pengu macrumors 6502a

    Joined:
    Mar 20, 2005
    Location:
    Diddily Daddily...
    #2
    um. the cookie domain will be whatever domain you specified the cookie is valid for. if you set it for www.domain.com and are trying to access it from www.domain.com it should work. if you set it for .domain.com and access it from www.domain.com it should also work.

    can you give some more specific information about it?
     
  3. JohnPerth thread starter macrumors newbie

    Joined:
    Aug 13, 2007
    #3
    More details

    All I do is call

    Response.Cookies("brand_UserId")("guid") = sGUID
    Response.Cookies("brand_UserId")("expires") = CDbl(DateAdd("n", Session_iMinsDuration, Now))
    Response.Cookies("brand_UserId").Expires = Now + 2

    Where sGUID is a unique identifier from the DB.

    I don't know what other details are relevant.

    It works on my Windows system in IE and FireFox. It works on the Mac in IE but it doesn't work on Safari, it just stays on the login page.

    Like I said above, if you go to
    Safari/Preferences/Security/Show Cookies
    the cookies name is www.mysite.com.au where as all the other cookies are named .anothersite.com . So I am thinking that it isn't working because Safari is adding the www infront of the cookie name giving www.www.mysite.com.au .

    Is there a better place than this where I could ask this question?

    Any help is greatly appreciated.

    Thanks,

    John.
     
  4. pengu macrumors 6502a

    Joined:
    Mar 20, 2005
    Location:
    Diddily Daddily...
    #4
    um. so you set a cookie. what are you checking for when you try to read it?
     

Share This Page