{"id":402,"date":"2007-05-16T18:53:43","date_gmt":"2007-05-16T18:53:43","guid":{"rendered":"http:\/\/alananna.co.uk\/blog\/2007\/the-highs-and-lows-of-web-development\/"},"modified":"2008-07-11T12:55:06","modified_gmt":"2008-07-11T12:55:06","slug":"the-highs-and-lows-of-web-development","status":"publish","type":"post","link":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/","title":{"rendered":"The Highs and Lows of Web Development"},"content":{"rendered":"<p>Sometime website development can be very frustrating, and as a <a href=\"http:\/\/www.pixelwave.co.uk\">freelance web developer<\/a> with few people to turn to when I come across a problem I really get to experience the highs and lows.<\/p>\n<p>Just the other day whilst working on a fairly complex project that I have on at the moment I came across a bug in my coding. The application I&#8217;m developing requires members to register and be logged in before they can access the data. This was all working well, the sign up process worked perfectly and the restrictions were in place, but then we noticed that when members tried to go to the 2nd page of a series of results they were logged out of the system and couldn&#8217;t access them. If they then logged in again they were free to go wherever they wished within the site as they should be.<\/p>\n<p>It took me over four hours to track down the bug. I rewrote loads of things, checked that the sessions and cookies were getting written properly, tested, re-tested and tested again but all with no joy until I noticed a missing hyphen in a URL. All of that trouble due to a single missing hyphen, just a pesky little &#8211; !!!<\/p>\n<p>For those in the know, what was happening was that my scripts were writing sessions and cookies associated with a domain with a hyphen, but the script that generated the links to the various pages were getting the base URL from a database. When entering the URL into the database I had omitted the hyphen.<\/p>\n<p>Now, normally this would have been easy to diagnose as the incorrect URL would have thrown up a &#8216;domain not found&#8217; or &#8216;page not found&#8217; error. However, in this case, my client had also registered the hyphen-less domain name and had it pointing to the same server. This meant that the page <em>was<\/em> being found on the other domain but the user was logged out as the session \/ cookies had been written for the domain with the hyphen.<\/p>\n<p>I have to admit though it was quite satisfying when I did eventually find the error, fixed it, tested it and all was working! I guess without little problems such as these there wouldn&#8217;t be any satisfaction to be gained from such activities.<\/p>\n<p><iframe src=\"http:\/\/rcm-uk.amazon.co.uk\/e\/cm?t=alslikklworls&#038;o=2&#038;p=8&#038;l=as1&#038;asins=0321344758&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr&#038;npa=1\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe> <iframe src=\"http:\/\/rcm-uk.amazon.co.uk\/e\/cm?t=alslikklworls&#038;o=2&#038;p=8&#038;l=as1&#038;asins=0672326728&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr&#038;npa=1\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometime website development can be very frustrating, and as a freelance web developer with few people to turn to when I come across a problem I really get to experience the highs and lows. Just the other day whilst working on a fairly complex project that I have on at the moment I came across&#46;&#46;&#46;<\/p>\n","protected":false},"author":1312,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[5,2],"tags":[],"class_list":["post-402","post","type-post","status-publish","format-standard","hentry","category-technology","category-website_design"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The Highs and Lows of Web Development - A Simple Life of Luxury<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Highs and Lows of Web Development - A Simple Life of Luxury\" \/>\n<meta property=\"og:description\" content=\"Sometime website development can be very frustrating, and as a freelance web developer with few people to turn to when I come across a problem I really get to experience the highs and lows. Just the other day whilst working on a fairly complex project that I have on at the moment I came across&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/\" \/>\n<meta property=\"og:site_name\" content=\"A Simple Life of Luxury\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/justal\/\" \/>\n<meta property=\"article:author\" content=\"http:\/\/www.facebook.com\/justal\/\" \/>\n<meta property=\"article:published_time\" content=\"2007-05-16T18:53:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2008-07-11T12:55:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.alananna.co.uk\/blog\/wp-content\/uploads\/2015\/04\/SLOL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"419\" \/>\n\t<meta property=\"og:image:height\" content=\"187\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alan Cole\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@justalcole\" \/>\n<meta name=\"twitter:site\" content=\"@justalcole\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alan Cole\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/\"},\"author\":{\"name\":\"Alan Cole\",\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/45ecde6c89b31a9e21f97fdde4c21372\"},\"headline\":\"The Highs and Lows of Web Development\",\"datePublished\":\"2007-05-16T18:53:43+00:00\",\"dateModified\":\"2008-07-11T12:55:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/\"},\"wordCount\":392,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/45ecde6c89b31a9e21f97fdde4c21372\"},\"articleSection\":[\"Technology\",\"Website Design\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/\",\"url\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/\",\"name\":\"The Highs and Lows of Web Development - A Simple Life of Luxury\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/#website\"},\"datePublished\":\"2007-05-16T18:53:43+00:00\",\"dateModified\":\"2008-07-11T12:55:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/2007\\\/05\\\/the-highs-and-lows-of-web-development\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Highs and Lows of Web Development\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/\",\"name\":\"A Simple Life of Luxury\",\"description\":\"Tales from a down-shifted family - Making the most of modest means in West Wales\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/45ecde6c89b31a9e21f97fdde4c21372\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/45ecde6c89b31a9e21f97fdde4c21372\",\"name\":\"Alan Cole\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Selfie.jpg\",\"url\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Selfie.jpg\",\"contentUrl\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Selfie.jpg\",\"width\":950,\"height\":713,\"caption\":\"Alan Cole\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/Selfie.jpg\"},\"description\":\"Alan is a Freelance Website Designer, Sports &amp; Exercise Science Lab Technician and full time Dad &amp; husband with far too many hobbies: Triathlete, Swimming, Cycling, Running, MTBing, Surfing, Windsurfing, SUPing, Gardening, Photography.... The list goes on.\",\"sameAs\":[\"https:\\\/\\\/www.pixelwave.co.uk\",\"http:\\\/\\\/www.facebook.com\\\/justal\\\/\",\"https:\\\/\\\/x.com\\\/justalcole\"],\"url\":\"https:\\\/\\\/www.alananna.co.uk\\\/blog\\\/author\\\/justal123\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Highs and Lows of Web Development - A Simple Life of Luxury","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/","og_locale":"en_GB","og_type":"article","og_title":"The Highs and Lows of Web Development - A Simple Life of Luxury","og_description":"Sometime website development can be very frustrating, and as a freelance web developer with few people to turn to when I come across a problem I really get to experience the highs and lows. Just the other day whilst working on a fairly complex project that I have on at the moment I came across&#46;&#46;&#46;","og_url":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/","og_site_name":"A Simple Life of Luxury","article_publisher":"http:\/\/www.facebook.com\/justal\/","article_author":"http:\/\/www.facebook.com\/justal\/","article_published_time":"2007-05-16T18:53:43+00:00","article_modified_time":"2008-07-11T12:55:06+00:00","og_image":[{"width":419,"height":187,"url":"https:\/\/www.alananna.co.uk\/blog\/wp-content\/uploads\/2015\/04\/SLOL.jpg","type":"image\/jpeg"}],"author":"Alan Cole","twitter_card":"summary_large_image","twitter_creator":"@justalcole","twitter_site":"@justalcole","twitter_misc":{"Written by":"Alan Cole","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/#article","isPartOf":{"@id":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/"},"author":{"name":"Alan Cole","@id":"https:\/\/www.alananna.co.uk\/blog\/#\/schema\/person\/45ecde6c89b31a9e21f97fdde4c21372"},"headline":"The Highs and Lows of Web Development","datePublished":"2007-05-16T18:53:43+00:00","dateModified":"2008-07-11T12:55:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/"},"wordCount":392,"commentCount":0,"publisher":{"@id":"https:\/\/www.alananna.co.uk\/blog\/#\/schema\/person\/45ecde6c89b31a9e21f97fdde4c21372"},"articleSection":["Technology","Website Design"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/","url":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/","name":"The Highs and Lows of Web Development - A Simple Life of Luxury","isPartOf":{"@id":"https:\/\/www.alananna.co.uk\/blog\/#website"},"datePublished":"2007-05-16T18:53:43+00:00","dateModified":"2008-07-11T12:55:06+00:00","breadcrumb":{"@id":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.alananna.co.uk\/blog\/2007\/05\/the-highs-and-lows-of-web-development\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.alananna.co.uk\/blog\/"},{"@type":"ListItem","position":2,"name":"The Highs and Lows of Web Development"}]},{"@type":"WebSite","@id":"https:\/\/www.alananna.co.uk\/blog\/#website","url":"https:\/\/www.alananna.co.uk\/blog\/","name":"A Simple Life of Luxury","description":"Tales from a down-shifted family - Making the most of modest means in West Wales","publisher":{"@id":"https:\/\/www.alananna.co.uk\/blog\/#\/schema\/person\/45ecde6c89b31a9e21f97fdde4c21372"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.alananna.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.alananna.co.uk\/blog\/#\/schema\/person\/45ecde6c89b31a9e21f97fdde4c21372","name":"Alan Cole","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.alananna.co.uk\/blog\/wp-content\/uploads\/2021\/06\/Selfie.jpg","url":"https:\/\/www.alananna.co.uk\/blog\/wp-content\/uploads\/2021\/06\/Selfie.jpg","contentUrl":"https:\/\/www.alananna.co.uk\/blog\/wp-content\/uploads\/2021\/06\/Selfie.jpg","width":950,"height":713,"caption":"Alan Cole"},"logo":{"@id":"https:\/\/www.alananna.co.uk\/blog\/wp-content\/uploads\/2021\/06\/Selfie.jpg"},"description":"Alan is a Freelance Website Designer, Sports &amp; Exercise Science Lab Technician and full time Dad &amp; husband with far too many hobbies: Triathlete, Swimming, Cycling, Running, MTBing, Surfing, Windsurfing, SUPing, Gardening, Photography.... The list goes on.","sameAs":["https:\/\/www.pixelwave.co.uk","http:\/\/www.facebook.com\/justal\/","https:\/\/x.com\/justalcole"],"url":"https:\/\/www.alananna.co.uk\/blog\/author\/justal123\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/users\/1312"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":0,"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/posts\/402\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alananna.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}