Print Page | Close Window

Cookie problems

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10156
Printed Date: 29 March 2026 at 2:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Cookie problems
Posted By: Mart
Subject: Cookie problems
Date 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.



Replies:
Posted By: ljamal
Date Posted: 26 April 2004 at 4:34pm
set the cookie domain to devjunkies.com


-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Mart
Date 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?


Posted By: ljamal
Date 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.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: pmormr
Date 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 -> http://www.devjunkies.com - www.devjunkies.com

that way... if the user types

ww323t089gdslgk3t985y456v7gyntiel496.devjunkies.com they still get redirected to http://www.devjunkies.com - www.devjunkies.com

 



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: pmormr
Date Posted: 26 April 2004 at 5:44pm

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

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



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: pmormr
Date Posted: 26 April 2004 at 5:46pm
note Network Solutions is slow... so give it 12 hours or so :)

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: dpyers
Date 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.


Posted By: Mart
Date Posted: 27 April 2004 at 2:42am
Well if we do redirect the page it won't redirect the cookies... I will try setting the domain



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net