Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #13981

Re: problem with cookies

From Swifty <steve.j.swift@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: problem with cookies
Date 2012-05-15 07:59 +0100
Organization Aioe.org NNTP Server
Message-ID <mbv3r75ak29dev3vqcdhoi90g4lg642g38@4ax.com> (permalink)
References <6510212.125.1337047703032.JavaMail.geo-discussion-forums@vbli11>

Show all headers | View raw


On Mon, 14 May 2012 19:08:23 -0700 (PDT), CODEY <ed.pataky@gmail.com>
wrote:

>why is this?  

www.domain.com and domain.com could be entirely separate systems, as
are www.swifys.org.uk (on a commercial server somewhere) and
swiftys.org.uk (on my home PC where I'm typing this) 

Cookies are typically recorded against the name of the host providing
the page.

You could set a cross-domain cookie but many people reject these, so
your process would become rather hit-and-miss.

>what can i do?

One approach would be to store the data on your server, rather in
cookies in the user's browser.

Alternatively, you could arrange to redirect requests for domain.com
to www.domain.com

-- 
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

problem with cookies CODEY <ed.pataky@gmail.com> - 2012-05-14 19:08 -0700
  Re: problem with cookies Swifty <steve.j.swift@gmail.com> - 2012-05-15 07:59 +0100
    Re: problem with cookies Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-15 11:09 -0700
      Re: problem with cookies Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-15 20:21 +0200
        Re: problem with cookies Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-15 12:43 -0700
          Re: problem with cookies Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-16 13:53 +0200
            OT: What is your "Face" graphic? Mike Duffy <Use_guestbook_page@website.in.sig> - 2012-05-16 23:42 +0000
      Re: problem with cookies "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-05-15 18:53 +0000

csiph-web