Very weird session/cookie issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jhorra
Forum Newbie
Posts: 24
Joined: Mon Aug 18, 2003 1:00 am

Very weird session/cookie issue

Post by Jhorra »

I have a page that when you type in the URL, or use a regular href link I created, it works fine. We have a flash header with just a regular button link in it. When you use the link in the flash header the page can't read the session or cookie values. Any ideas?
Jhorra
Forum Newbie
Posts: 24
Joined: Mon Aug 18, 2003 1:00 am

Post by Jhorra »

We figured it out, the flash guy didn't put the www in the URL, and we had a problem before where if you didn't type in www in the address you would get a page cannot be displayed. It's like the server doesn't recognize them as the same site when the www isn't in there.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Jhorra wrote:It's like the server doesn't recognize them as the same site when the www isn't in there.
technically they're not the same site, www is a different 'host' than the root of the domain.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

technically, it's not the same domain.

You can modify your DNS record with www as a CNAME instead of an A record to make them equivalent.

Edit: Burrito - you beat me to it you sly bacon-nut!
User avatar
Obadiah
Forum Regular
Posts: 580
Joined: Mon Jul 31, 2006 9:13 am
Location: Ashland, KY
Contact:

Post by Obadiah »

Kieran Huggins wrote:Edit: Burrito - you beat me to it you sly bacon-nut!
8O what is a bacon-nut?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

the baconiest of all nuts... mmmmmmmm...... bacon!
Post Reply