Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Cookie problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cookie problems

 Post Reply Post Reply Page  12>
Author
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Topic: Cookie problems
    Posted: 26 April 2004 at 3:56pm
Hey,

We are currently having problems with cookies. If the user is logged in at www.devjunkies.com but not at devjunkies.com then sometimes the user will get an error if they click certain links. We basically need the cookie to be posted to www.devjunkies.com as well as devjunkies.com Is that possible?

Sorry if it doesn't make sense (I talk jibberish most of the time)

Mart.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2004 at 4:34pm
set the cookie domain to devjunkies.com
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2004 at 4:37pm
Do you mean the path? And if we do set it to devjunkies.com would it be counted as a thrid party cookie on www.devjunkies.com?
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2004 at 4:52pm
not the path, the domain
by default the domain is set to whatever the current domain and subdomain is (in this case www.devjunkies.com). If you set the cookie domain to simply devjunkies.com, it will work at www.devjunkies.com, devjunkies.com, hey.deveunkies.com, or whateversubdomainyouchoose.devjunkies.com. It is not a 3rd party cookie. Third party cookies are cookies posted by domains other than the current domain since devjunkies.com is the current domain, despite the subdomain, it is not a 3rd party cookie.

Be careful however because the browser will check for subdomain cookies before domain cookies, so if you write to both depending on what subdomain you are on, you may get a different cookie.

The code to set the domain is something like:
Response.Cookies("cookiename").Domain = "domainname"
this should be located in the same place as the cookie is set.
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2004 at 5:40pm

or you can just set the dns to redirect anything that isn't explicitly listed to www... something like *.devjunkies.com -> www.devjunkies.com

that way... if the user types

ww323t089gdslgk3t985y456v7gyntiel496.devjunkies.com they still get redirected to www.devjunkies.com

 

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2004 at 5:44pm

give it a few hours to replicate accross Network solutions and then try this link...

http://9tyn346nvtoeryger9j57648ufmasdfg43tgljkdshg.illgetit.info... should work



Edited by pmormr
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2004 at 5:46pm
note Network Solutions is slow... so give it 12 hours or so :)
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3938
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2004 at 6:43pm
Works well in CT as of the time of this post.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.