|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
November 10th, 2004, 11:07 AM
|
Registered User
|
|
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
IE6 or IIS5 settings
I'm working with the cookies code on pages 305 - 309 of the Dreamweaver MX book. This cookie is set equal to variable which is then incremented by 1. The problem is the cookie is only sent to my computer one time and therefore the variable does not increment when I refresh. I tried the same exact page on a production server and it works fine. So I don't believe it's the code. Instead I think it's a setting on my machine either in IE6 or IIS5. Also, I tried loading the page in Netscape 7 and the same problem occurred. So it may not be an IE setting. Both browsers are set to accept cookies, and I receieved the cookie once. Any suggestions on possibly a setting I can change?
|
November 10th, 2004, 03:54 PM
|
|
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Do you have a firewall or other security software on your computer that may be blocking your cookies?
For other questions related to the book, this forum may be more appropriate: http://p2p.wrox.com/forum.asp?FORUM_ID=19
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
November 10th, 2004, 06:29 PM
|
Registered User
|
|
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for the reply Imar. I do have a firewall and that may be the cause of it. However, when I load the page, it places the cookie on my computer once. It just doesn't seem to be updating it. It did however, update on the production server. I'll try disabling the firewall and see if that makes difference.
Mike
|
November 10th, 2004, 09:44 PM
|
Registered User
|
|
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I tried the page with the firewall turned off and the refreshed version of the page did not change text. Checked some of my settings to be sure they were the same as they are for the broswer that is using the production server. Everything looked the same. Dunno?
|
November 11th, 2004, 01:59 PM
|
|
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
It still seems that your cookies are blocked.
You said that the first time it works. This isn't due to a cookie, but due to the code that assigns a default value when the cookie is not present. So, the first time you end up with the default value, and not with a value from the cookie.
To test things out, can you run the code from my second post in this thread: http://p2p.wrox.com/topic.asp?TOPIC_ID=21576
That's a simple test to see if cookies and sessions work for you.
Are you running the browser and IIS on the same machine? What other software do you have running? Are you using Windows XP with SP2??
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Third eye by Tool (Track 1 from the album: Salival) What's This?
|
November 16th, 2004, 08:59 PM
|
Registered User
|
|
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Imar - I tested your code from the other forum. My code worte the session variables text but the cookie text was blank. I, like the other guy, have ZA. However, I've uninstalled it to eliminate that from the cause. As for other programs running: Norton Anitvirus, SQL Server 2000 and that's about it. Have you seen anything like this?
Mike
|
November 17th, 2004, 03:22 PM
|
|
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Heuh? That is weird. ASP Sessions work with cookies, so for a session variable to be transferred to the next page, your browser / system needs to support cookies. Did you create the two pages with just the code I showed you and nothing more?
Are you using Service Pack 2 for Windows XP? SP2 has a cookie blocker that may be blocking your cookies.....
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
November 18th, 2004, 06:23 PM
|
Registered User
|
|
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Correct, I created the 2 pages and placed the code that you diplayed into the correct page. I haven't upgraded to SP2 yet. Maybe I need to uninstall and reinstall IIS. I'm obviulsy getting cookies from other sites when I visit their pages. It must be a http://locahost issue. Let me try uninstalling and reinstalling IIS. This is very strange.
Mike
|
November 24th, 2004, 12:19 PM
|
Registered User
|
|
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello, I am a beginner in DW MX and I have the following prob:
I am previewing in browser - IE6.
I can click on a link and its ok - then click to go back to homepage and its OK but when I click again on same link as previous I get a blank page. It does not matter which pages I click on - it stills behaves the same. Very aggravating as it is probably a box unchcked or something silly.
Help please
|
November 24th, 2004, 02:26 PM
|
|
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Did you enable the "Browse with a temporary copy" option in the Options dialog in Dreamweaver?
With that option enabled, DW creates a temporary copy of the page to display in the browser.
That way, the initial page you request may not be exactly the same page as you try to browse to.
In the future, can you please create a new thread instead of continuing an old and unrelated thread?
Cheers,
Imar
|
|
|