Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #13996
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: problem with cookies |
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
| References | <6510212.125.1337047703032.JavaMail.geo-discussion-forums@vbli11> <mbv3r75ak29dev3vqcdhoi90g4lg642g38@4ax.com> <TZwsr.9505$TC4.4301@newsfe14.iad> |
| Message-ID | <XnsA054D48175206eejj99@194.109.133.133> (permalink) |
| Date | 2012-05-15 18:53 +0000 |
Daniel Pitts wrote on 15 mei 2012 in comp.lang.javascript: > On 5/14/12 11:59 PM, Swifty wrote: >> 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 >> > I think alternatively you could set the cookie domain to ".domain.com", > which includes "domain.com" and "www.domain.com", as well as > "blah.domain.com". Setting the domain to 'www.example.com' will make the cookie available in the www subdomain and higher subdomains. Cookies available to a lower domain, such as 'example.com' will be available to higher subdomains, such as 'www.example.com'. Older browsers still implementing the deprecated ť RFC 2109 may require a leading . to match all subdomains. [not tested] -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll 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